Rev 1376 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1376 | Rev 2382 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 1376 $ |
8 | $Revision: 2382 $ |
9 | 9 | ||
10 | 10 | ||
Line 330... | Line 330... | ||
330 | mov [edi+CURSOR.hot_x], ecx |
330 | mov [edi+CURSOR.hot_x], ecx |
331 | mov [edi+CURSOR.hot_y], edx |
331 | mov [edi+CURSOR.hot_y], edx |
Line 332... | Line 332... | ||
332 | 332 | ||
Line 333... | Line 333... | ||
333 | stdcall init_cursor, eax, esi |
333 | stdcall init_cursor, eax, esi |
334 | 334 | ||
335 | mov eax, [.hcursor] |
335 | mov ecx, [.hcursor] |
Line 336... | Line 336... | ||
336 | lea eax, [eax+CURSOR.list_next] |
336 | lea ecx, [ecx+CURSOR.list_next] |
337 | lea edx, [_display.cr_list.next] |
337 | lea edx, [_display.cr_list.next] |
338 | - | ||
339 | pushfd |
- | |
340 | cli |
- | |
341 | mov ecx, [edx] |
338 | |
342 | - | ||
343 | mov [eax], ecx |
- | |
344 | mov [eax+4], edx |
- | |
345 | 339 | pushfd |
|
Line 346... | Line 340... | ||
346 | mov [ecx+4], eax |
340 | cli |
347 | mov [edx], eax |
341 | list_add ecx, edx ;list_add_tail(new, head) |
348 | popfd |
342 | popfd |
Line 456... | Line 450... | ||
456 | align 4 |
450 | align 4 |
457 | destroy_cursor: |
451 | destroy_cursor: |
Line 458... | Line 452... | ||
458 | 452 | ||
459 | push eax |
453 | push eax |
460 | stdcall kernel_free, [eax+CURSOR.base] |
- | |
Line -... | Line 454... | ||
- | 454 | stdcall kernel_free, [eax+CURSOR.base] |
|
- | 455 | ||
- | 456 | mov eax, [esp] |
|
- | 457 | lea eax, [eax+CURSOR.list_next] |
|
- | 458 | ||
- | 459 | pushfd |
|
- | 460 | cli |
|
- | 461 | list_del eax |
|
- | 462 | popfd |
|
461 | pop eax |
463 | |
462 | 464 | pop eax |
|
Line 463... | Line 465... | ||
463 | call destroy_kernel_object |
465 | call destroy_kernel_object |
464 | ret |
466 | ret |
Line 790... | Line 792... | ||
790 | mov [_display.select_cursor], eax |
792 | mov [_display.select_cursor], eax |
791 | mov [_display.move_cursor], eax |
793 | mov [_display.move_cursor], eax |
792 | ret |
794 | ret |
Line 793... | Line -... | ||
793 | - | ||
794 | - | ||
795 | - | ||
796 | - | ||
797 | - | ||
798 | - | ||
799 | - | ||
800 | - | ||
801 | 795 | ||
802 | 796 | ||
803 | align 4 |
797 | align 4 |