|
|
@ -106,15 +106,9 @@ function edit(mem, record, cursor_x, cursor_y, transformed) |
|
|
|
bank = record.address[1] |
|
|
|
bank = record.address[1] |
|
|
|
line_no = record.address[2] |
|
|
|
line_no = record.address[2] |
|
|
|
|
|
|
|
|
|
|
|
-- very important to transform |
|
|
|
-- very important to transform *back* into the space of the instruction coordinates |
|
|
|
-- *back* into the space of the |
|
|
|
dx = (1.0/state.scale) * (cursor_x*cos(-state.rotation) - cursor_y*sin(-state.rotation)) |
|
|
|
-- instruction coordinates |
|
|
|
dy = (1.0/state.scale) * (cursor_x*sin(-state.rotation) + cursor_y*cos(-state.rotation)) |
|
|
|
dx = (1.0/state.scale) * ( |
|
|
|
|
|
|
|
cursor_x*cos(-state.rotation) |
|
|
|
|
|
|
|
- cursor_y*sin(-state.rotation)) |
|
|
|
|
|
|
|
dy = (1.0/state.scale) * ( |
|
|
|
|
|
|
|
cursor_x*sin(-state.rotation) |
|
|
|
|
|
|
|
+ cursor_y*cos(-state.rotation)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- we need to allow for this. |
|
|
|
-- we need to allow for this. |
|
|
|
if not transformed then |
|
|
|
if not transformed then |
|
|
|