fix software cursor code

git-svn-id: svn://kolibrios.org@638 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2007-09-21 10:07:37 +00:00
parent b54b752941
commit 7bccb7de56

View File

@ -429,6 +429,11 @@ destroy_cursor:
call destroy_kernel_object call destroy_kernel_object
ret ret
align 4
select_cursor:
ret 4
align 4 align 4
proc init_cursors proc init_cursors
cmp [SCR_MODE],word 0x13 cmp [SCR_MODE],word 0x13
@ -472,15 +477,19 @@ proc init_cursors
cmp ebx, 32 cmp ebx, 32
jne @F jne @F
mov dword [select_hw_cursor], select_cursor
mov dword [set_hw_cursor], cursor_32 mov dword [set_hw_cursor], cursor_32
mov dword [hw_restore], restore_32 mov dword [hw_restore], restore_32
ret ret
@@: @@:
mov dword [select_hw_cursor], select_cursor
mov dword [set_hw_cursor], cursor_24 mov dword [set_hw_cursor], cursor_24
mov dword [hw_restore], restore_24 mov dword [hw_restore], restore_24
ret ret
.fail: .fail:
xor eax, eax xor eax, eax
mov dword [select_hw_cursor], eax
mov dword [set_hw_cursor], eax mov dword [set_hw_cursor], eax
mov dword [hw_restore], eax mov dword [hw_restore], eax
ret ret