From f3a1e6ca5ff2b4b2c10b7c586ac7cabbf32e7a16 Mon Sep 17 00:00:00 2001 From: shikhin Date: Sun, 26 Mar 2023 04:24:48 +0530 Subject: [PATCH] Don't clobber ax in viewer event_click --- viewer.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewer.asm b/viewer.asm index b7eb04c..a36e0db 100644 --- a/viewer.asm +++ b/viewer.asm @@ -452,9 +452,8 @@ event_mouse: ; bx = Y ; cx = X ; dl = mouse buttons -; out: -; clobbers ax event_click: + push ax ; This is not a true event passed into our event handler, but ; rather one we've synthetized from the mouse event ; The reason we synthetize this event is because most interface @@ -506,6 +505,7 @@ event_click: .not_title_bar: .end: + pop ax ret ; in: