just minor cleanups
This commit is contained in:
parent
dc48f1bbca
commit
0330330683
@ -11,11 +11,11 @@ function _draw()
|
||||
-- bottom
|
||||
draw_bottom_ui()
|
||||
|
||||
tab_x = 1
|
||||
if (current_pane==1) tab_x=10
|
||||
if (current_pane==2) tab_x=46
|
||||
if (current_pane==3) tab_x=86
|
||||
spr(48, tab_x, 7)
|
||||
tab_x = 1
|
||||
if (current_pane==1) tab_x=10
|
||||
if (current_pane==2) tab_x=46
|
||||
if (current_pane==3) tab_x=86
|
||||
spr(48, tab_x, 7)
|
||||
c_pane_draw()
|
||||
r_pane_draw()
|
||||
l_pane_draw()
|
||||
|
@ -106,15 +106,9 @@ function edit(mem, record, cursor_x, cursor_y, transformed)
|
||||
bank = record.address[1]
|
||||
line_no = record.address[2]
|
||||
|
||||
-- very important to transform
|
||||
-- *back* into the space of the
|
||||
-- instruction coordinates
|
||||
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))
|
||||
-- very important to transform *back* into the space of the instruction coordinates
|
||||
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.
|
||||
if not transformed then
|
||||
|
Loading…
Reference in New Issue
Block a user