Subversion Repositories Kolibri OS

Rev

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

Rev 2626 Rev 2630
Line 1... Line 1...
1
;------------------------------------------------------------------------------
1
;------------------------------------------------------------------------------
2
align 4
2
align 4
3
draw_tray:    ; draw cpu usage, time, date etc.
3
draw_tray:    ; draw cpu usage, time, date etc.
4
	pusha
4
	pusha
5
;	cmp	[tray_enable],dword 1
-
 
6
;	jne	no_setup
-
 
Line 7... Line 5...
7
 
5
 
8
	call	draw_tray_buttons
6
	call	draw_tray_buttons
9
	call	draw_time_skin
7
	call	draw_time_skin
Line 10... Line 8...
10
	call	draw_time
8
	call	draw_time
11
	
9
	
Line 12... Line 10...
12
	mov	[draw_flag_certainly],1
10
	mov	[draw_flag_certainly],1
13
   	call	draw_flag	; language
-
 
14
 
11
   	call	draw_flag	; language
15
	call	draw_list_button
-
 
16
;--------------------------------------
12
 
17
;align 4
13
	call	draw_list_button
18
;no_setup:
14
 
19
	popa
15
	popa
20
	ret
16
	ret
Line 95... Line 91...
95
;--------------------------------------
91
;--------------------------------------
96
align 4	
92
align 4	
97
@@:
93
@@:
98
	ret
94
	ret
99
;------------------------------------------------------------------------------
95
;------------------------------------------------------------------------------
-
 
96
align 4
100
draw_time_skin:
97
draw_time_skin:
101
	cmp	[clock_enable],dword 0
98
	cmp	[clock_enable],dword 0
102
	je	.exit
99
	je	.exit
Line 111... Line 108...
111
;--------------------------------------
108
;--------------------------------------
112
align 4
109
align 4
113
.exit:
110
.exit:
114
	ret
111
	ret
115
;------------------------------------------------------------------------------
112
;------------------------------------------------------------------------------
-
 
113
align 4
116
draw_time:
114
draw_time:
117
	cmp	[clock_enable],dword 0
115
	cmp	[clock_enable],dword 0
118
	je	.exit
116
	je	.exit
Line 119... Line 117...
119
	
117
	
Line 266... Line 264...
266
;--------------------------------------
264
;--------------------------------------
267
; draw page list number
265
; draw page list number
268
	mov	edx,ebx
266
	mov	edx,ebx
269
	add	edx,9 shl 16
267
	add	edx,9 shl 16
270
	mcall	47,0x20000,[page_list],,[system_colours.work_button_text]
268
	mcall	47,0x20000,[page_list],,[system_colours.work_button_text]
-
 
269
;--------------------------------------
-
 
270
align 4
271
.exit:	
271
.exit:	
272
	ret
272
	ret
273
;------------------------------------------------------------------------------
273
;------------------------------------------------------------------------------
274
align 4
274
align 4
275
draw_cpu_usage:
275
draw_cpu_usage:
Line 328... Line 328...
328
	sub	ebx,2
328
	sub	ebx,2
Line 329... Line 329...
329
	
329
	
Line 330... Line 330...
330
	mcall	13,,,[CpuUsage_color]	;0x44aa44
330
	mcall	13,,,[CpuUsage_color]	;0x44aa44
-
 
331
 
-
 
332
	popad
331
 
333
;--------------------------------------
332
	popad
334
align 4
333
.exit:
335
.exit:
334
	ret
336
	ret
335
;------------------------------------------------------------------------------
337
;------------------------------------------------------------------------------
Line 403... Line 405...
403
	shl	edx,1
405
	shl	edx,1
404
	add	edx,flag_text
406
	add	edx,flag_text
405
	mcall	4,,,,2
407
	mcall	4,,,,2
406
	popa
408
	popa
407
	mov	[draw_flag_certainly],0
409
	mov	[draw_flag_certainly],0
-
 
410
;--------------------------------------
-
 
411
align 4
408
.exit:
412
.exit:
409
	ret
413
	ret
410
;------------------------------------------------------------------------------
414
;------------------------------------------------------------------------------
411
align 4
415
align 4
412
if caps_lock_check
416
if caps_lock_check