Subversion Repositories Kolibri OS

Rev

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

Rev 769 Rev 802
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. 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: 769 $
8
$Revision: 802 $
9
 
9
 
10
 
10
 
Line 112... Line 112...
112
	inc ecx
112
	inc ecx
113
	mul ecx
113
	mul ecx
Line 114... Line 114...
114
 
114
 
115
	movzx edx, byte [display_data+ebx+eax]
115
	movzx edx, byte [display_data+ebx+eax]
116
	shl edx, 8
116
	shl edx, 8
Line 117... Line 117...
117
	mov ecx, [edx+SLOT_BASE+APPDATA.cursor]
117
        mov esi, [edx+SLOT_BASE+APPDATA.cursor]
118
 
118
 
Line 119... Line 119...
119
	cmp ecx, [current_cursor]
119
        cmp esi, [current_cursor]
120
	je .draw
-
 
121
 
-
 
122
	cmp [ecx+CURSOR.magic], 'CURS'
-
 
123
	jne .fail
-
 
124
 
-
 
125
	push ecx
-
 
126
	call [select_hw_cursor]
-
 
127
	mov [current_cursor], ecx
120
	je .draw
Line -... Line 121...
-
 
121
 
-
 
122
       ; cmp [esi+CURSOR.magic], 'CURS'
-
 
123
       ; jne .fail
128
 
124
 
129
;        cmp [ecx+CURSOR.size], CURSOR_SIZE
125
        push esi
130
;        jne .fail
126
	call [select_hw_cursor]
131
 
127
        mov [current_cursor], esi
132
.draw:
128
.draw:
133
	stdcall [set_hw_cursor], ecx
129
        stdcall [set_hw_cursor], esi
134
	popad
130
	popad
135
	ret
131
	ret
136
.fail:
132
.fail:
137
	mov ecx, [def_cursor]
133
	mov ecx, [def_cursor]
Line 138... Line 134...
138
	mov [edx+SLOT_BASE+APPDATA.cursor], ecx
134
	mov [edx+SLOT_BASE+APPDATA.cursor], ecx
139
	stdcall [set_hw_cursor], ecx
135
        stdcall [set_hw_cursor], ecx            ; stdcall: [esp]=ebx,eax