Subversion Repositories Kolibri OS

Rev

Rev 340 | Rev 5098 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 340 Rev 2741
Line 84... Line 84...
84
	mov	[wndWidth],edx
84
	mov	[wndWidth],edx
85
	mov	[wndHeight],esi
85
	mov	[wndHeight],esi
Line 86... Line 86...
86
 
86
 
87
	call	drawWindow
87
	call	drawWindow
88
.msgpump:
88
.msgpump:
Line 89... Line 89...
89
	call	drawClock
89
;	call	drawClock
90
 
90
 
91
	; wait up to a second for next event
91
	; wait up to a second for next event
92
	mov	eax,MOS_SC_WAITEVENTTIMEOUT
92
	mov	eax,MOS_SC_WAITEVENTTIMEOUT
Line -... Line 93...
-
 
93
	mov	ebx,100
-
 
94
	int	0x40
-
 
95
 
-
 
96
	test	eax,eax
-
 
97
	jne	.event_occured
93
	mov	ebx,100
98
	call	drawClock
94
	int	0x40
99
 
95
 
100
  .event_occured:
96
	cmp	eax,MOS_EVT_REDRAW
101
	cmp	eax,MOS_EVT_REDRAW
97
	je	.redraw
102
	je	.redraw
Line 155... Line 160...
155
	or	ebx,[wndWidth]
160
	or	ebx,[wndWidth]
156
	mov	ecx,[wndYPos]
161
	mov	ecx,[wndYPos]
157
	shl	ecx,16
162
	shl	ecx,16
158
	or	ecx,[wndHeight]
163
	or	ecx,[wndHeight]
159
	mov	edx,[wndColors+MOS_WNDCOLORS.work]
164
	mov	edx,[wndColors+MOS_WNDCOLORS.work]
160
	or	edx,0x03000000
165
	or	edx,0x53000000
161
	mov	esi,[wndColors+MOS_WNDCOLORS.grab]
-
 
162
	mov	edi,[wndColors+MOS_WNDCOLORS.frame]
-
 
163
	int	0x40
-
 
164
 
-
 
165
	; draw window label
-
 
166
	mov	eax,MOS_SC_WRITETEXT
-
 
167
	mov	ebx,MOS_DWORD(8,8)
-
 
168
	mov	ecx,[wndColors+MOS_WNDCOLORS.grabText]
-
 
169
	mov	edx,label
166
	mov	edi,label
170
	mov	esi,LABEL_LEN
-
 
171
	int	0x40
167
	int	0x40
Line 172... Line 168...
172
		
168
 
Line 173... Line 169...
173
	call drawClock
169
	call drawClock