From b7914ab4cdef05b8663b1da091e80a5b3f319aef Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 16 Mar 2012 21:12:10 +0000 Subject: [PATCH] fix old and stupid bug in cursor creation code git-svn-id: svn://kolibrios.org@2473 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/video/cursors.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/video/cursors.inc b/kernel/trunk/video/cursors.inc index 8874905d43..76081341c5 100644 --- a/kernel/trunk/video/cursors.inc +++ b/kernel/trunk/video/cursors.inc @@ -353,6 +353,8 @@ create_cursor: stdcall init_cursor, eax, esi +align 4 +.add_cursor: mov ecx, [.hcursor] lea ecx, [ecx+CURSOR.list_next] lea edx, [_display.cr_list.next] @@ -363,9 +365,6 @@ create_cursor: popfd mov eax, [.hcursor] -;-------------------------------------- -align 4 -.check_hw: cmp [_display.init_cursor], 0 je .fail @@ -392,7 +391,7 @@ align 4 mov ecx, 1024 cld rep movsd - jmp .check_hw + jmp .add_cursor ;------------------------------------------------------------------------------ align 4 proc load_cursor stdcall, src:dword, flags:dword