Subversion Repositories Kolibri OS

Rev

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

Rev 425 Rev 465
Line 1... Line 1...
1
$Revision: 425 $
1
$Revision: 465 $
-
 
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 
3
;;                                                              ;;
-
 
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
-
 
5
;; Distributed under terms of the GNU General Public License    ;;
-
 
6
;;                                                              ;;
-
 
7
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 2... Line 8...
2
 
8
 
3
LOAD_FROM_FILE  equ 0
9
LOAD_FROM_FILE  equ 0
4
LOAD_FROM_MEM   equ 1
10
LOAD_FROM_MEM   equ 1
5
LOAD_INDIRECT   equ 2
11
LOAD_INDIRECT   equ 2
6
LOAD_SYSTEM     equ 3
-
 
Line 7... Line 12...
7
VIDEO_FREE      equ 2
12
LOAD_SYSTEM     equ 3
8
 
13
 
9
struc BITMAPINFOHEADER {
14
struc BITMAPINFOHEADER {
10
  .biSize          dd ? ; DWORD
15
  .biSize          dd ? ; DWORD
Line 266... Line 271...
266
           mov eax, [hcursor]
271
           mov eax, [hcursor]
267
           cmp [eax+CURSOR.magic], 'CURS'
272
           cmp [eax+CURSOR.magic], 'CURS'
268
           jne .fail
273
           jne .fail
269
;           cmp [eax+CURSOR.size], CURSOR_SIZE
274
;           cmp [eax+CURSOR.size], CURSOR_SIZE
270
;           jne .fail
275
;           jne .fail
271
           mov ebx, [CURRENT_TASK]
276
           mov ebx, [current_slot]
272
           shl ebx, 8
-
 
273
           xchg eax, [ebx+SLOT_BASE+APPDATA.cursor]
277
           xchg eax, [ebx+APPDATA.cursor]
274
           ret
278
           ret
275
.fail:
279
.fail:
276
           mov eax, [def_cursor]
280
           mov eax, [def_cursor]
277
           mov ebx, [CURRENT_TASK]
281
           mov ebx, [current_slot]
278
           shl ebx, 8
-
 
279
           xchg eax, [ebx+SLOT_BASE+APPDATA.cursor]
282
           xchg eax, [ebx+APPDATA.cursor]
280
           ret
283
           ret
281
endp
284
endp
Line 282... Line 285...
282
 
285
 
283
; param
286
; param
Line 397... Line 400...
397
           shl ebx, 5
400
           shl ebx, 5
398
           mov ebx, [CURRENT_TASK+ebx+4]
401
           mov ebx, [CURRENT_TASK+ebx+4]
399
           cmp ebx, [esi+CURSOR.pid]
402
           cmp ebx, [esi+CURSOR.pid]
400
           jne .fail
403
           jne .fail
Line 401... Line 404...
401
 
404
 
402
           mov ebx, [CURRENT_TASK]
-
 
403
           shl ebx, 8
405
           mov ebx, [current_slot]
404
           cmp esi, [ebx+SLOT_BASE+APPDATA.cursor]
406
           cmp esi, [ebx+APPDATA.cursor]
405
           jne @F
407
           jne @F
406
           mov eax, [def_cursor]
408
           mov eax, [def_cursor]
407
           mov [ebx+SLOT_BASE+APPDATA.cursor], eax
409
           mov [ebx+APPDATA.cursor], eax
408
@@:
410
@@:
409
           mov eax, [hcursor]
411
           mov eax, [hcursor]
410
           call [eax+APPOBJ.destroy]
412
           call [eax+APPOBJ.destroy]
411
.fail:
413
.fail: