Subversion Repositories Kolibri OS

Rev

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

Rev 1300 Rev 1316
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: 1300 $
8
$Revision: 1316 $
9
 
9
 
10
 
10
 
Line 49... Line 49...
49
;process_test_m79 db 'K : Process - test Mario79 error    00000000',13,10,0
49
;process_test_m79 db 'K : Process - test Mario79 error    00000000',13,10,0
Line 50... Line 50...
50
 
50
 
51
draw_mouse_under:
51
draw_mouse_under:
Line 52... Line 52...
52
	; return old picture
52
	; return old picture
53
 
53
 
-
 
54
    cmp [_display.restore_cursor], 0
54
	cmp [set_hw_cursor], 0
55
    je @F
55
	jz @F
56
 
56
	pushad
57
	pushad
57
	movzx  eax,word [X_UNDER]
58
	movzx  eax,word [X_UNDER]
58
	movzx  ebx,word [Y_UNDER]
59
	movzx  ebx,word [Y_UNDER]
59
	stdcall [hw_restore], eax, ebx
60
    stdcall [_display.restore_cursor], eax, ebx
60
	popad
61
	popad
61
	ret
62
	ret
62
@@:
63
@@:
Line 95... Line 96...
95
	popad
96
	popad
96
	ret
97
	ret
Line 97... Line 98...
97
 
98
 
Line 98... Line 99...
98
save_draw_mouse:
99
save_draw_mouse:
99
 
100
 
100
	cmp [set_hw_cursor], 0
101
    cmp [_display.move_cursor], 0
Line 101... Line 102...
101
	je .no_hw_cursor
102
	je .no_hw_cursor
102
	pushad
103
	pushad
Line 118... Line 119...
118
 
119
 
119
        cmp esi, [current_cursor]
120
        cmp esi, [current_cursor]
Line 120... Line 121...
120
	je .draw
121
	je .draw
121
 
122
 
122
        push esi
123
        push esi
123
	call [select_hw_cursor]
124
    call [_display.select_cursor]
124
        mov [current_cursor], esi
125
        mov [current_cursor], esi
125
.draw:
126
.draw:
126
        stdcall [set_hw_cursor], esi
127
    stdcall [_display.move_cursor], esi
127
	popad
128
	popad
128
	ret
129
	ret
129
.fail:
130
.fail:
130
	mov ecx, [def_cursor]
131
	mov ecx, [def_cursor]
131
	mov [edx+SLOT_BASE+APPDATA.cursor], ecx
132
	mov [edx+SLOT_BASE+APPDATA.cursor], ecx
132
        stdcall [set_hw_cursor], ecx            ; stdcall: [esp]=ebx,eax
133
    stdcall [_display.move_cursor], ecx            ; stdcall: [esp]=ebx,eax
Line 133... Line 134...
133
	popad
134
	popad
134
	ret
135
	ret