mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-26 22:31:18 +00:00
All: subtract grChipOffsetX/Y from coordiates given to user so the match the PNGs
This commit is contained in:
parent
9760663cc1
commit
bf63c33552
@ -487,7 +487,7 @@ function handleClick(e){
|
||||
var cx = Math.round(x*grChipSize/600);
|
||||
var cy = Math.round(y*grChipSize/600);
|
||||
// prepare two lines of status report
|
||||
var s1='x: ' + cx + ' y: ' + cy;
|
||||
var s1='x: ' + (cx - grChipOffsetX) + ' y: ' + (cy - grChipOffsetY);
|
||||
var s2='node: ' + w + ' ' + nodeName(w);
|
||||
if(w==-1) {
|
||||
setStatus(s1); // no node found, so report only coordinates
|
||||
|
Loading…
Reference in New Issue
Block a user