From 00a1fc35293f751a521e4f31aacc55e3d59d18e8 Mon Sep 17 00:00:00 2001 From: Burer Date: Mon, 5 May 2025 08:18:37 +0300 Subject: [PATCH] [Apps/Magnify] Used constants instead of magic numbers --- programs/demos/magnify/trunk/magnify.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/demos/magnify/trunk/magnify.asm b/programs/demos/magnify/trunk/magnify.asm index 0e9644e9b..e74b1ba55 100644 --- a/programs/demos/magnify/trunk/magnify.asm +++ b/programs/demos/magnify/trunk/magnify.asm @@ -44,13 +44,13 @@ START: still: mcall SF_WAIT_EVENT_TIMEOUT, DELAY - cmp eax, 1 + cmp eax, EV_REDRAW je redraw - cmp eax, 3 + cmp eax, EV_BUTTON je button - cmp eax, 6 + cmp eax, EV_MOUSE je mouse jmp redraw @@ -104,7 +104,7 @@ draw_window: draw_magnify: mcall SF_THREAD_INFO, procinfo, -1 - mov al, byte [procinfo + 70] + mov al, byte [procinfo.wnd_state] test al, 0x04 jne .du_loop_end @@ -231,5 +231,5 @@ I_END: align 512 STACKTOP: - procinfo rb 1024 + procinfo process_information MEM: