[Apps/Magnify] Used constants instead of magic numbers
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 22s
Build system / Build (pull_request) Successful in 4m45s

This commit is contained in:
2025-05-05 08:18:37 +03:00
parent d45938350e
commit 00a1fc3529

View File

@@ -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: