From 7bccb7de56b564562159bee460d4baa97231f003 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 21 Sep 2007 10:07:37 +0000 Subject: [PATCH] fix software cursor code git-svn-id: svn://kolibrios.org@638 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/video/cursors.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kernel/trunk/video/cursors.inc b/kernel/trunk/video/cursors.inc index 304353d509..87b6439f11 100644 --- a/kernel/trunk/video/cursors.inc +++ b/kernel/trunk/video/cursors.inc @@ -429,6 +429,11 @@ destroy_cursor: call destroy_kernel_object ret +align 4 +select_cursor: + + ret 4 + align 4 proc init_cursors cmp [SCR_MODE],word 0x13 @@ -472,15 +477,19 @@ proc init_cursors cmp ebx, 32 jne @F + + mov dword [select_hw_cursor], select_cursor mov dword [set_hw_cursor], cursor_32 mov dword [hw_restore], restore_32 ret @@: + mov dword [select_hw_cursor], select_cursor mov dword [set_hw_cursor], cursor_24 mov dword [hw_restore], restore_24 ret .fail: xor eax, eax + mov dword [select_hw_cursor], eax mov dword [set_hw_cursor], eax mov dword [hw_restore], eax ret