[Apps/Magnify] Used constants instead of magic numbers
This commit is contained in:
@@ -44,13 +44,13 @@ START:
|
|||||||
still:
|
still:
|
||||||
mcall SF_WAIT_EVENT_TIMEOUT, DELAY
|
mcall SF_WAIT_EVENT_TIMEOUT, DELAY
|
||||||
|
|
||||||
cmp eax, 1
|
cmp eax, EV_REDRAW
|
||||||
je redraw
|
je redraw
|
||||||
|
|
||||||
cmp eax, 3
|
cmp eax, EV_BUTTON
|
||||||
je button
|
je button
|
||||||
|
|
||||||
cmp eax, 6
|
cmp eax, EV_MOUSE
|
||||||
je mouse
|
je mouse
|
||||||
|
|
||||||
jmp redraw
|
jmp redraw
|
||||||
@@ -104,7 +104,7 @@ draw_window:
|
|||||||
draw_magnify:
|
draw_magnify:
|
||||||
|
|
||||||
mcall SF_THREAD_INFO, procinfo, -1
|
mcall SF_THREAD_INFO, procinfo, -1
|
||||||
mov al, byte [procinfo + 70]
|
mov al, byte [procinfo.wnd_state]
|
||||||
test al, 0x04
|
test al, 0x04
|
||||||
jne .du_loop_end
|
jne .du_loop_end
|
||||||
|
|
||||||
@@ -231,5 +231,5 @@ I_END:
|
|||||||
align 512
|
align 512
|
||||||
|
|
||||||
STACKTOP:
|
STACKTOP:
|
||||||
procinfo rb 1024
|
procinfo process_information
|
||||||
MEM:
|
MEM:
|
||||||
|
Reference in New Issue
Block a user