Rev 5452 | Rev 6218 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5452 | Rev 5872 | ||
---|---|---|---|
1 | ;------------------------------------------------------------------------------ |
- | |
2 | align 4 |
1 | draw_tray: ; draw cpu usage, time, date etc. |
3 | draw_tray: ; draw cpu usage, time, date etc. |
2 | pusha |
4 | pusha |
3 | call draw_tray_buttons |
5 | - | ||
6 | call draw_tray_buttons |
4 | call draw_time_skin |
7 | call draw_time_skin |
5 | call draw_time |
8 | call draw_time |
6 | mov [draw_flag_certainly],1 |
9 | - | ||
10 | mov [draw_flag_certainly],1 |
7 | call draw_flag ; language |
11 | call draw_flag ; language |
8 | call draw_list_button |
12 | - | ||
13 | call draw_list_button |
9 | popa |
14 | - | ||
15 | popa |
10 | ret |
16 | ret |
11 | ;--------------------------------------------------------------- |
17 | ;------------------------------------------------------------------------------ |
12 | draw_tray_buttons: |
18 | draw_tray_buttons: |
13 | mov [offset_x_tray],0 |
19 | mov [offset_x_tray],0 |
14 | cmp [minimize_right],dword 0 |
20 | - | ||
21 | cmp [minimize_right],dword 0 |
15 | je @f |
22 | je @f |
16 | add [offset_x_tray],MR_SIZE |
23 | - | ||
24 | add [offset_x_tray],MR_SIZE |
17 | @@: |
25 | ;-------------------------------------- |
- | |
26 | align 4 |
- | |
27 | @@: |
18 | mov ecx,[height] |
28 | ; mov ecx,3 shl 16 |
- | |
29 | ; add ecx,[height] |
- | |
30 | ; sub cx,6 |
- | |
31 | mov ecx,[height] |
19 | mov esi,[wcolor] |
32 | mov esi,[wcolor] |
20 | mov eax,8 |
33 | mov eax,8 |
21 | cmp [clock_enable],dword 0 |
34 | ;-------------------------------------- |
- | |
35 | cmp [clock_enable],dword 0 |
22 | je @f |
36 | je @f |
23 | add [offset_x_tray],CLOCK_SIZE |
37 | - | ||
38 | add [offset_x_tray],CLOCK_SIZE |
24 | mov ebx,[max_x] |
39 | - | ||
40 | mov ebx,[max_x] |
25 | sub ebx,[offset_x_tray] |
41 | sub ebx,[offset_x_tray] |
26 | shl ebx,16 |
42 | shl ebx,16 |
27 | add ebx,CLOCK_SIZE+1 |
43 | add ebx,CLOCK_SIZE+1 |
28 | mcall ,,,0x60000000+2 ; time/date button |
44 | mcall ,,,0x60000000+2 ; time/date button |
29 | sub ebx,3 |
45 | sub ebx,3 |
30 | mov [pos_x_clock],ebx |
46 | mov [pos_x_clock],ebx |
31 | @@: |
47 | ;-------------------------------------- |
- | |
48 | align 4 |
- | |
49 | @@: |
32 | cmp [cpu_usage_enable],dword 0 |
50 | cmp [cpu_usage_enable],dword 0 |
33 | je @f |
51 | je @f |
34 | add [offset_x_tray],CPU_USAGE_SIZE |
52 | - | ||
53 | add [offset_x_tray],CPU_USAGE_SIZE |
35 | mov ebx,[max_x] |
54 | - | ||
55 | mov ebx,[max_x] |
36 | sub ebx,[offset_x_tray] |
56 | sub ebx,[offset_x_tray] |
37 | shl ebx,16 |
57 | shl ebx,16 |
38 | add ebx,CPU_USAGE_SIZE+1 |
58 | add ebx,CPU_USAGE_SIZE+1 |
39 | mcall ,,,0x60000000+18 ;button 18 - sysmeter_name (GMON) |
59 | mcall ,,,0x60000000+18 ;button 18 - sysmeter_name (GMON) |
40 | sub ebx,3 |
60 | sub ebx,3 |
41 | mov [pos_x_cpu_usage],ebx |
61 | mov [pos_x_cpu_usage],ebx |
42 | @@: |
62 | ;-------------------------------------- |
- | |
63 | align 4 |
- | |
64 | @@: |
43 | cmp [chlang_enable],dword 0 |
65 | cmp [chlang_enable],dword 0 |
44 | je @f |
66 | je @f |
45 | add [offset_x_tray],CHLANG_SIZE |
67 | - | ||
68 | add [offset_x_tray],CHLANG_SIZE |
46 | mov ebx,[max_x] |
69 | - | ||
70 | mov ebx,[max_x] |
47 | sub ebx,[offset_x_tray] |
71 | sub ebx,[offset_x_tray] |
48 | shl ebx,16 |
72 | shl ebx,16 |
49 | add ebx,CHLANG_SIZE+1 |
73 | add ebx,CHLANG_SIZE+1 |
50 | mcall ,,,0x60000000+16 ;button 16 - chang language |
74 | mcall ,,,0x60000000+16 ;button 16 - chang language |
51 | sub ebx,3 |
75 | sub ebx,3 |
52 | mov [pos_x_cpu_chlang],ebx |
76 | mov [pos_x_cpu_chlang],ebx |
53 | @@: |
77 | ;-------------------------------------- |
- | |
78 | align 4 |
- | |
79 | @@: |
54 | cmp [page_list_enable],dword 0 |
80 | cmp [page_list_enable],dword 0 |
55 | je @f |
81 | je @f |
56 | add [offset_x_tray],PAGE_LIST_SIZE |
82 | - | ||
83 | add [offset_x_tray],PAGE_LIST_SIZE |
57 | mov ebx,[max_x] |
84 | - | ||
85 | mov ebx,[max_x] |
58 | sub ebx,[offset_x_tray] |
86 | sub ebx,[offset_x_tray] |
59 | shl ebx,16 |
87 | shl ebx,16 |
60 | add ebx,10 |
88 | add ebx,10 |
61 | mov [pos_x_page_list],ebx |
89 | mov [pos_x_page_list],ebx |
62 | mcall ,,,0x60000000+22 ;button 22 - page list decrease |
90 | mcall ,,,0x60000000+22 ;button 22 - page list decrease |
63 | |
91 | 64 | add ebx,24 shl 16 |
|
92 | add ebx,24 shl 16 |
65 | mcall ,,,0x60000000+21 ;button 21 - page list decrease |
93 | - | ||
94 | mcall ,,,0x60000000+21 ;button 21 - page list decrease |
66 | @@: |
95 | ;-------------------------------------- |
- | |
96 | align 4 |
- | |
97 | @@: |
67 | ret |
98 | ret |
68 | ;--------------------------------------------------------------- |
99 | ;------------------------------------------------------------------------------ |
69 | draw_time_skin: |
100 | align 4 |
- | |
101 | draw_time_skin: |
70 | cmp [clock_enable],dword 0 |
102 | cmp [clock_enable],dword 0 |
71 | je @b |
103 | je .exit |
72 | mov ebx,[pos_x_clock] |
104 | - | ||
105 | - | ||
106 | mov ebx,[pos_x_clock] |
73 | call calculate_button_y_coordinate_and_size |
107 | call calculate_button_y_coordinate_and_size |
74 | |
108 | 75 | mov edx,[Clock_color] ;time_bgr_color |
|
109 | mov edx,[Clock_color] ;time_bgr_color |
76 | mov esi,[wcolor] |
110 | mov esi,[wcolor] |
77 | jmp draw_appl_button |
111 | call draw_appl_button |
78 | ;--------------------------------------------------------------- |
112 | ;-------------------------------------- |
- | |
113 | align 4 |
- | |
114 | .exit: |
- | |
115 | ret |
- | |
116 | ;------------------------------------------------------------------------------ |
79 | draw_time: |
117 | align 4 |
- | |
118 | draw_time: |
80 | cmp [clock_enable],dword 0 |
119 | cmp [clock_enable],dword 0 |
81 | je @b |
120 | je .exit |
82 | mcall 3 |
121 | - | ||
122 | mcall 3 |
83 | cmp eax,[ptime] |
123 | cmp eax,[ptime] |
84 | jz @b |
124 | jz .exit |
85 | mov [ptime],eax |
125 | - | ||
126 | mov [ptime],eax |
86 | |
127 | ;-------------------------------------- |
- | |
- | 87 | ; draw hours and minutes |
|
128 | ; draw hours and minutes |
88 | movzx ebx,al |
129 | movzx ebx,al |
89 | shr eax,8 |
130 | shr eax,8 |
90 | movzx ecx,al |
131 | movzx ecx,al |
91 | shr eax,8 |
132 | shr eax,8 |
92 | movzx edx,al |
133 | movzx edx,al |
93 | push ebx |
134 | ; ebx ecx edx h m s |
- | |
135 | push ebx |
94 | push ecx |
136 | push ecx |
95 | |
137 | 96 | mov ebx,[pos_x_clock] |
|
138 | mov ebx,[pos_x_clock] |
97 | call calculate_button_y_coordinate_and_size |
139 | call calculate_button_y_coordinate_and_size |
98 | movzx eax,cx |
140 | movzx eax,cx |
99 | shr eax,1 |
141 | shr eax,1 |
100 | sub eax,4 |
142 | sub eax,4 |
101 | shr ecx,16 |
143 | shr ecx,16 |
102 | add eax,ecx |
144 | add eax,ecx |
103 | mov bx,ax |
145 | mov bx,ax |
104 | add ebx,18 shl 16 |
146 | - | ||
147 | add ebx,18 shl 16 |
105 | mov ecx,[PanelText_color] |
148 | - | ||
149 | ; mov ecx,[bte] |
- | |
150 | mov ecx,[PanelText_color] |
106 | or ecx,0x40000000 |
151 | or ecx,0x40000000 |
107 | mov edx,[esp] ; __:_X |
152 | mov edx,[esp] ; __:_X |
108 | and edx,15 |
153 | and edx,15 |
109 | add ebx,10*65536 |
154 | add ebx,10*65536 |
110 | add edx,text |
155 | add edx,text |
111 | mcall 4,,,,1,[Clock_color] ;time_bgr_color |
156 | mcall 4,,,,1,[Clock_color] ;time_bgr_color |
112 | |
157 | 113 | pop edx ; __:X_ |
|
158 | pop edx ; __:X_ |
114 | shr edx,4 |
159 | shr edx,4 |
115 | and edx,15 |
160 | and edx,15 |
116 | sub ebx,6*65536 |
161 | sub ebx,6*65536 |
117 | add edx,text |
162 | add edx,text |
118 | mcall |
163 | mcall |
119 | |
164 | 120 | mov edx,[esp] ; _X:__ |
|
165 | mov edx,[esp] ; _X:__ |
121 | and edx,15 |
166 | and edx,15 |
122 | sub ebx,11*65536 |
167 | sub ebx,11*65536 |
123 | add edx,text |
168 | add edx,text |
124 | mcall |
169 | mcall |
125 | |
170 | 126 | pop edx ; X_:__ |
|
171 | pop edx ; X_:__ |
127 | shr edx,4 |
172 | shr edx,4 |
128 | and edx,15 |
173 | and edx,15 |
129 | sub ebx,6*65536 |
174 | sub ebx,6*65536 |
130 | add edx,text |
175 | add edx,text |
131 | mcall |
176 | mcall |
132 | |
177 | ;-------------------------------------- |
- | |
- | 133 | ; draw seconds |
|
178 | ; draw seconds |
134 | mov ebx,[pos_x_clock] |
179 | mov ebx,[pos_x_clock] |
135 | call calculate_button_y_coordinate_and_size |
180 | call calculate_button_y_coordinate_and_size |
136 | movzx eax,cx |
181 | movzx eax,cx |
137 | shr eax,1 |
182 | shr eax,1 |
138 | sub eax,4 |
183 | sub eax,4 |
139 | shr ecx,16 |
184 | shr ecx,16 |
140 | add eax,ecx |
185 | add eax,ecx |
141 | mov bx,ax |
186 | mov bx,ax |
142 | add ebx,17 shl 16 |
187 | - | ||
188 | add ebx,17 shl 16 |
143 | mcall 3 |
189 | - | ||
190 | mcall 3 |
144 | |
191 | 145 | mov ecx,eax |
|
192 | mov ecx,eax |
146 | shr ecx,16 |
193 | shr ecx,16 |
147 | and ecx,1 |
194 | and ecx,1 |
148 | mov edx,[PanelText_color] |
195 | ; mov edx,[bte] |
- | |
196 | mov edx,[PanelText_color] |
149 | sub edx,[Clock_color] ;time_bgr_color;[wcolor] |
197 | sub edx,[Clock_color] ;time_bgr_color;[wcolor] |
150 | imul ecx,edx |
198 | imul ecx,edx |
151 | add ecx,[Clock_color] ;time_bgr_color;[wcolor] |
199 | add ecx,[Clock_color] ;time_bgr_color;[wcolor] |
152 | mcall 4,,,sec,1 |
200 | - | ||
201 | mcall 4,,,sec,1 |
153 | |
202 | 154 | jmp draw_cpu_usage |
|
203 | call draw_cpu_usage |
- | |
204 | ;-------------------------------------- |
- | |
205 | align 4 |
- | |
206 | .exit: |
- | |
207 | ret |
155 | ;--------------------------------------------------------------- |
208 | ;------------------------------------------------------------------------------ |
- | |
209 | align 4 |
156 | draw_list_button: |
210 | draw_list_button: |
157 | cmp [page_list_enable],dword 0 |
211 | cmp [page_list_enable],dword 0 |
158 | je @f |
- | 159 | ||
212 | je .exit |
160 | ; draw page list button "skin" |
213 | ; draw page list button "skin" |
161 | mov ebx,[pos_x_page_list] |
214 | mov ebx,[pos_x_page_list] |
162 | mov bx,10 |
215 | mov bx,10 |
163 | call calculate_button_y_coordinate_and_size |
216 | - | ||
217 | call calculate_button_y_coordinate_and_size |
164 | |
218 | - | ||
219 | ; mov ecx,3 shl 16 |
- | |
220 | ; add ecx,[height] |
- | |
221 | ; sub cx,6 |
- | |
222 | 165 | xor edx,edx |
|
223 | xor edx,edx |
- | |
224 | ; mcall 13 |
- | |
225 | 166 | mov edx,[PageList_color] ;0xffffff |
|
226 | mov edx,[PageList_color] ;0xffffff |
167 | mov esi,[wcolor] |
227 | mov esi,[wcolor] |
168 | call draw_appl_button |
228 | call draw_appl_button |
169 | |
229 | 170 | add ebx,24 shl 16 ; 18 shl 16 |
|
230 | add ebx,24 shl 16 ; 18 shl 16 |
171 | mov edx,[PageList_color] ;0xffffff |
231 | ; mcall |
- | |
232 | - | ||
233 | mov edx,[PageList_color] ;0xffffff |
172 | mov esi,[wcolor] |
234 | mov esi,[wcolor] |
173 | call draw_appl_button |
235 | call draw_appl_button |
174 | |
236 | - | ||
237 | ; sub ebx,23 shl 16 ; 19 shl 16 |
- | |
238 | ; sub bx,2 |
- | |
239 | - | ||
240 | ; add ecx,1 shl 16 |
- | |
241 | ; sub ecx,2 |
- | |
242 | ; mcall ,,,0xffffff |
- | |
243 | - | ||
244 | ; add ebx,24 shl 16 |
- | |
245 | ; mcall |
- | |
246 | ;-------------------------------------- |
175 | ; draw page list button text <> |
247 | ; draw page list button text <> |
176 | mov ebx,[pos_x_page_list] |
248 | mov ebx,[pos_x_page_list] |
177 | add ebx,2 shl 16 |
249 | add ebx,2 shl 16 |
178 | call calculate_button_y_coordinate_and_size |
250 | ; mov eax,[height] |
- | |
251 | ; shr eax,1 |
- | |
252 | ; sub eax,4 |
- | |
253 | ; mov bx,ax |
- | |
254 | - | ||
255 | call calculate_button_y_coordinate_and_size |
179 | movzx eax,cx |
256 | movzx eax,cx |
180 | shr eax,1 |
257 | shr eax,1 |
181 | sub eax,4 |
258 | sub eax,4 |
182 | shr ecx,16 |
259 | shr ecx,16 |
183 | add eax,ecx |
260 | add eax,ecx |
184 | mov bx,ax |
261 | mov bx,ax |
185 | xor ecx,ecx |
262 | - | ||
263 | xor ecx,ecx |
186 | mcall 4,,,page_a1,5 |
264 | mcall 4,,,page_a1,5 |
187 | |
265 | 188 | add ebx,1 shl 16 |
|
266 | add ebx,1 shl 16 |
189 | mcall |
267 | mcall |
190 | |
268 | ;-------------------------------------- |
- | |
- | 191 | ; draw page list number |
|
269 | ; draw page list number |
192 | mov edx,ebx |
270 | mov edx,ebx |
193 | add edx,9 shl 16 |
271 | add edx,9 shl 16 |
194 | mcall 47,0x20000,[page_list],,[system_colours.work_button_text] |
272 | mcall 47,0x20000,[page_list],,[system_colours.work_button_text] |
195 | @@: |
273 | ;-------------------------------------- |
- | |
274 | align 4 |
- | |
275 | .exit: |
196 | ret |
276 | ret |
197 | ;--------------------------------------------------------------- |
277 | ;------------------------------------------------------------------------------ |
198 | draw_cpu_usage: |
278 | align 4 |
- | |
279 | draw_cpu_usage: |
199 | cmp [cpu_usage_enable],dword 0 |
280 | cmp [cpu_usage_enable],dword 0 |
200 | je @b |
281 | je .exit |
201 | |
282 | 202 | pushad |
|
- | 203 | ||
283 | pushad |
204 | mov eax,[height] |
284 | mov eax,[height] |
205 | sub eax,[button_top_offset] |
285 | sub eax,[button_top_offset] |
206 | sub eax,[button_bottom_offset] |
286 | sub eax,[button_bottom_offset] |
207 | sub eax,2 |
287 | sub eax,2 |
208 | mov [ysi],eax ;12 |
288 | - | ||
289 | mov [ysi],eax ;12 |
209 | mcall 18,5 ; TSC / SEC |
290 | mcall 18,5 ; TSC / SEC |
210 | |
291 | 211 | shr eax,20 |
|
292 | shr eax,20 |
212 | push eax |
293 | push eax |
213 | mcall 18,4 ; IDLE / SEC |
294 | mcall 18,4 ; IDLE / SEC |
214 | |
295 | 215 | shr eax,20 |
|
296 | shr eax,20 |
216 | xor edx,edx |
297 | xor edx,edx |
217 | imul eax,[ysi] |
298 | imul eax,[ysi] |
218 | cdq |
299 | cdq |
219 | pop ebx |
300 | pop ebx |
220 | inc ebx |
301 | inc ebx |
221 | div ebx |
302 | div ebx |
222 | cmp eax,[ysi] |
303 | cmp eax,[ysi] |
223 | jng @f |
304 | jng .no_bug |
224 | mov eax,[ysi] |
305 | - | ||
306 | mov eax,[ysi] |
225 | @@: |
307 | ;-------------------------------------- |
- | |
308 | align 4 |
- | |
309 | .no_bug: |
226 | push eax |
310 | push eax |
227 | mov ebx,[pos_x_cpu_usage] |
311 | - | ||
312 | mov ebx,[pos_x_cpu_usage] |
228 | mov ecx,[button_top_offset] |
313 | mov ecx,[button_top_offset] |
229 | shl ecx,16 |
314 | shl ecx,16 |
230 | add ecx,[ysi] |
315 | add ecx,[ysi] |
231 | add ecx,2 |
316 | add ecx,2 |
232 | mov edx,[CpuUsageBckgr_color] ;0xdd2222 |
317 | - | ||
318 | mov edx,[CpuUsageBckgr_color] ;0xdd2222 |
233 | mov esi,[wcolor] |
319 | mov esi,[wcolor] |
234 | call draw_appl_button |
320 | call draw_appl_button |
235 | pop eax |
321 | - | ||
322 | pop eax |
236 | |
323 | - | ||
324 | ; mov ecx,4 shl 16 |
237 | mov ecx,[button_top_offset] |
325 | mov ecx,[button_top_offset] |
238 | inc ecx |
326 | inc ecx |
239 | shl ecx,16 |
327 | shl ecx,16 |
240 | add ecx,eax |
328 | add ecx,eax |
241 | add ebx,1 shl 16 |
329 | - | ||
330 | - | ||
331 | add ebx,1 shl 16 |
242 | sub ebx,2 |
332 | sub ebx,2 |
243 | mcall 13,,,[CpuUsage_color] ;0x44aa44 |
333 | - | ||
334 | mcall 13,,,[CpuUsage_color] ;0x44aa44 |
244 | |
335 | 245 | popad |
|
336 | popad |
246 | @@: |
337 | ;-------------------------------------- |
- | |
338 | align 4 |
- | |
339 | .exit: |
247 | ret |
340 | ret |
248 | ;--------------------------------------------------------------- |
341 | ;------------------------------------------------------------------------------ |
249 | ; get and draw keyboard layout |
342 | align 4 |
- | |
343 | ; eax = number (1 or 2) |
250 | draw_flag: |
344 | ; ebx = language id |
- | |
345 | draw_flag: |
251 | cmp [chlang_enable],dword 0 |
346 | cmp [chlang_enable],dword 0 |
252 | je @b |
347 | je .exit |
253 | cmp [draw_flag_certainly],0 |
348 | - | ||
349 | cmp [draw_flag_certainly],0 |
254 | je @b |
350 | je .exit |
255 | |
351 | 256 | pusha |
|
352 | pusha |
- | |
353 | ;-------------------------------------- |
- | |
354 | ; get and draw keyboard layout |
- | |
355 | mcall 26,2,9 |
257 | |
356 | - | ||
357 | mov ebx,eax |
258 | mcall 26,2,9 |
358 | 259 | mov edx,eax |
|
359 | ; mov eax,2 |
- | |
360 | mov [type_lang],al |
- | |
361 | ; eax = 2 BIG |
- | |
362 | ; eax = 1 small |
260 | mov [type_lang],al |
363 | mov edx,ebx |
261 | |
364 | 262 | pushad |
|
365 | pushad |
263 | mov ebx,[pos_x_cpu_chlang] |
366 | mov ebx,[pos_x_cpu_chlang] |
264 | call calculate_button_y_coordinate_and_size |
367 | call calculate_button_y_coordinate_and_size |
265 | mov edx,[ChangeLang_color] ;time_bgr_color ;0xff ;[wcolor] |
368 | - | ||
369 | ; cmp [type_lang],1 |
- | |
370 | ; je .label_1 |
- | |
371 | - | ||
372 | mov edx,[ChangeLang_color] ;time_bgr_color ;0xff ;[wcolor] |
266 | mov esi,[wcolor] |
373 | ; jmp .label_2 |
- | |
374 | ;-------------------------------------- |
- | |
375 | ;align 4 |
- | |
376 | ;.label_1: |
- | |
377 | ; mov edx,0x7700 |
- | |
378 | ;-------------------------------------- |
- | |
379 | ;align 4 |
- | |
380 | ;.label_2: |
- | |
381 | mov esi,[wcolor] |
267 | call draw_appl_button |
382 | call draw_appl_button |
268 | popad |
383 | - | ||
384 | popad |
269 | |
385 | 270 | mov ebx,[pos_x_cpu_chlang] |
|
386 | mov ebx,[pos_x_cpu_chlang] |
271 | mov ax,bx |
387 | mov ax,bx |
272 | shr eax,1 |
388 | shr eax,1 |
273 | shl eax,16 |
389 | shl eax,16 |
274 | add ebx,eax |
390 | add ebx,eax |
275 | sub ebx,6 shl 16 |
391 | sub ebx,6 shl 16 |
276 | call calculate_button_y_coordinate_and_size |
392 | - | ||
393 | call calculate_button_y_coordinate_and_size |
277 | movzx eax,cx |
394 | movzx eax,cx |
278 | shr eax,1 |
395 | shr eax,1 |
279 | sub eax,4 |
396 | sub eax,4 |
280 | shr ecx,16 |
397 | shr ecx,16 |
281 | add eax,ecx |
398 | add eax,ecx |
282 | mov bx,ax |
399 | mov bx,ax |
283 | mov ecx,[PanelText_color] |
400 | - | ||
401 | ; mov ecx,[bte] ; color |
- | |
402 | mov ecx,[PanelText_color] |
284 | |
403 | 285 | if caps_lock_check |
|
404 | if caps_lock_check |
286 | push ebx |
405 | ; make flag_text 'enfigerufretua' or 'ENFIGERUFRETUA' depending on CapsLock state. |
- | |
406 | call flag_text_setup |
- | |
407 | end if |
- | |
408 | dec edx |
287 | mov [flag_text],flagTextSm |
409 | shl edx,1 |
- | |
410 | add edx,flag_text |
- | |
411 | mcall 4,,,,2 |
- | |
412 | popa |
- | |
413 | mov [draw_flag_certainly],0 |
288 | mcall 66,3 |
414 | ;-------------------------------------- |
- | |
415 | align 4 |
- | |
416 | .exit: |
- | |
417 | ret |
- | |
418 | ;------------------------------------------------------------------------------ |
- | |
419 | align 4 |
- | |
420 | if caps_lock_check |
- | |
421 | flag_text_setup: |
- | |
422 | pusha |
- | |
423 | mcall 66,3 |
289 | test eax, 0x40 |
424 | mov edi, flag_text |
- | |
425 | mov esi, flag_text_caps_off |
- | |
426 | test eax, 0x40 |
290 | jz @f |
427 | jz @f |
291 | mov [flag_text],flagTextBg |
428 | - | ||
429 | add esi, 14 |
292 | @@: |
430 | ;-------------------------------------- |
- | |
431 | align 4 |
- | |
432 | @@: |
293 | pop ebx |
433 | mov ecx, 14 |
294 | end if |
434 | rep movsb |
295 | |
- | 296 | dec edx |
|
- | 297 | shl edx,1 |
|
- | 298 | add edx,[flag_text] |
|
- | 299 | mcall 4,,,,2 |
|
435 | 300 | popa |
|
- | 301 | mov [draw_flag_certainly],0 |
|
436 | popa |
302 | ret> |
437 | ret |
- | |
438 | - | ||
439 | ;flag_text_caps_off db 'enfigerufretua' |
- | |
440 | flag_text_caps_off: |
- | |
441 | db 'EnFiGeRuFrEtUa' |
- | |
442 | db 'ENFIGERUFRETUA' |
- | |
443 | end if |
- | |
444 | ;------------------------------------------------------------------------------> |
- |