calendar: update time on button click, not by timeout

git-svn-id: svn://kolibrios.org@7902 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2020-05-08 15:07:58 +00:00
parent 8f322ec4d5
commit dd347862d8

View File

@ -400,70 +400,65 @@ day_bounds db -1,0,7,0,-7,0,1,0 ; left,down,up,right
xor [new_style],1 xor [new_style],1
jmp upd jmp upd
update_clock:
mcall 22,0x00000000
call draw_clock
jmp still
reset: reset:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
shl ecx,16 shl ecx,16
shr ecx,16 shr ecx,16
mcall 22,0x00000000 jmp update_clock
jmp still
plus_hd: plus_hd:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
add ecx,1 add ecx,1
mcall 22,0x00000000 jmp update_clock
jmp still
plus_he: plus_he:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
add ecx,16 add ecx,16
mcall 22,0x00000000 jmp update_clock
jmp still
minus_hd: minus_hd:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
sub ecx,1 sub ecx,1
mcall 22,0x00000000 jmp update_clock
jmp still
minus_he: minus_he:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
sub ecx,16 sub ecx,16
mcall 22,0x00000000 jmp update_clock
jmp still
plus_md: plus_md:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
add ecx,256 add ecx,256
mcall 22,0x00000000 jmp update_clock
jmp still
plus_me: plus_me:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
add ecx,4096 add ecx,4096
mcall 22,0x00000000 jmp update_clock
jmp still
minus_md: minus_md:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
sub ecx,256 sub ecx,256
mcall 22,0x00000000 jmp update_clock
jmp still
minus_me: minus_me:
mcall 3 mcall 3
mov ecx,eax mov ecx,eax
sub ecx,4096 sub ecx,4096
mcall 22,0x00000000 jmp update_clock
jmp still
set_date: set_date:
mov eax,0x00000000 mov eax,0x00000000