forked from KolibriOS/kolibrios
fix old and stupid bug in cursor creation code
git-svn-id: svn://kolibrios.org@2473 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
bff46d5384
commit
b7914ab4cd
@ -353,6 +353,8 @@ create_cursor:
|
|||||||
|
|
||||||
stdcall init_cursor, eax, esi
|
stdcall init_cursor, eax, esi
|
||||||
|
|
||||||
|
align 4
|
||||||
|
.add_cursor:
|
||||||
mov ecx, [.hcursor]
|
mov ecx, [.hcursor]
|
||||||
lea ecx, [ecx+CURSOR.list_next]
|
lea ecx, [ecx+CURSOR.list_next]
|
||||||
lea edx, [_display.cr_list.next]
|
lea edx, [_display.cr_list.next]
|
||||||
@ -363,9 +365,6 @@ create_cursor:
|
|||||||
popfd
|
popfd
|
||||||
|
|
||||||
mov eax, [.hcursor]
|
mov eax, [.hcursor]
|
||||||
;--------------------------------------
|
|
||||||
align 4
|
|
||||||
.check_hw:
|
|
||||||
cmp [_display.init_cursor], 0
|
cmp [_display.init_cursor], 0
|
||||||
je .fail
|
je .fail
|
||||||
|
|
||||||
@ -392,7 +391,7 @@ align 4
|
|||||||
mov ecx, 1024
|
mov ecx, 1024
|
||||||
cld
|
cld
|
||||||
rep movsd
|
rep movsd
|
||||||
jmp .check_hw
|
jmp .add_cursor
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
proc load_cursor stdcall, src:dword, flags:dword
|
proc load_cursor stdcall, src:dword, flags:dword
|
||||||
|
Loading…
Reference in New Issue
Block a user