From dd347862d8b0c3a48d0569229f6e93fb0d7c7c1b Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Fri, 8 May 2020 15:07:58 +0000 Subject: [PATCH] calendar: update time on button click, not by timeout git-svn-id: svn://kolibrios.org@7902 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/calendar/trunk/calendar.asm | 31 +++++++++------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/programs/system/calendar/trunk/calendar.asm b/programs/system/calendar/trunk/calendar.asm index 61e9a9124d..a35a577445 100644 --- a/programs/system/calendar/trunk/calendar.asm +++ b/programs/system/calendar/trunk/calendar.asm @@ -400,70 +400,65 @@ day_bounds db -1,0,7,0,-7,0,1,0 ; left,down,up,right xor [new_style],1 jmp upd +update_clock: + mcall 22,0x00000000 + call draw_clock + jmp still reset: mcall 3 mov ecx,eax shl ecx,16 shr ecx,16 - mcall 22,0x00000000 - jmp still + jmp update_clock plus_hd: mcall 3 mov ecx,eax add ecx,1 - mcall 22,0x00000000 - jmp still + jmp update_clock plus_he: mcall 3 mov ecx,eax add ecx,16 - mcall 22,0x00000000 - jmp still + jmp update_clock minus_hd: mcall 3 mov ecx,eax sub ecx,1 - mcall 22,0x00000000 - jmp still + jmp update_clock minus_he: mcall 3 mov ecx,eax sub ecx,16 - mcall 22,0x00000000 - jmp still + jmp update_clock plus_md: mcall 3 mov ecx,eax add ecx,256 - mcall 22,0x00000000 - jmp still + jmp update_clock plus_me: mcall 3 mov ecx,eax add ecx,4096 - mcall 22,0x00000000 - jmp still + jmp update_clock minus_md: mcall 3 mov ecx,eax sub ecx,256 - mcall 22,0x00000000 - jmp still + jmp update_clock minus_me: mcall 3 mov ecx,eax sub ecx,4096 - mcall 22,0x00000000 - jmp still + jmp update_clock set_date: mov eax,0x00000000