Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2740 → Rev 2741

/programs/demos/aclock/trunk/aclock.asm
86,7 → 86,7
 
call drawWindow
.msgpump:
call drawClock
; call drawClock
 
; wait up to a second for next event
mov eax,MOS_SC_WAITEVENTTIMEOUT
93,6 → 93,11
mov ebx,100
int 0x40
 
test eax,eax
jne .event_occured
call drawClock
 
.event_occured:
cmp eax,MOS_EVT_REDRAW
je .redraw
cmp eax,MOS_EVT_KEY
157,19 → 162,10
shl ecx,16
or ecx,[wndHeight]
mov edx,[wndColors+MOS_WNDCOLORS.work]
or edx,0x03000000
mov esi,[wndColors+MOS_WNDCOLORS.grab]
mov edi,[wndColors+MOS_WNDCOLORS.frame]
or edx,0x53000000
mov edi,label
int 0x40
 
; draw window label
mov eax,MOS_SC_WRITETEXT
mov ebx,MOS_DWORD(8,8)
mov ecx,[wndColors+MOS_WNDCOLORS.grabText]
mov edx,label
mov esi,LABEL_LEN
int 0x40
call drawClock
; end window redraw
/programs/demos/aclock/trunk/draw.inc
114,9 → 114,11
pushad
mov ebx,(MOS_WND_SKIN_BORDER_LEFT)*0x10000 ; x start
or ebx,ecx ; width
inc ebx
mov ecx,eax ; y start
shl ecx,16 ; (=skin height)
or ecx,edx ; height
inc ecx
mov edx,[wndColors + MOS_WNDCOLORS.work]
mov eax,MOS_SC_DRAWBAR
int 0x40