Draw mouse pointer after restore the default pointer.

git-svn-id: svn://kolibrios.org@2450 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2012-03-11 18:04:22 +00:00
parent 30d819787b
commit 1e9db5557e
3 changed files with 11 additions and 0 deletions

View File

@ -398,6 +398,8 @@ hd_entries rd 1 ;unused ? 0xfe10
mouse_active rd 1
mouse_pause rd 1
redrawmouse_unconditional rd 1
img_background rd 1
mem_BACKGROUND rd 1
static_background_data rd 1

View File

@ -415,6 +415,13 @@ __sys_draw_pointer:
movzx edx, word [Y_UNDER]
movzx ebx, word [MOUSE_Y]
movzx eax, word [MOUSE_X]
cmp [redrawmouse_unconditional], 0
je @f
mov [redrawmouse_unconditional], 0
jmp redrawmouse
;--------------------------------------
align 4
@@:
cmp eax, ecx
jne redrawmouse
cmp ebx, edx

View File

@ -1967,6 +1967,8 @@ restore_default_cursor_before_killing:
push esi
call [_display.select_cursor]
mov [current_cursor], esi
mov [redrawmouse_unconditional], 1
call [draw_pointer]
ret
;------------------------------------------------------------------------------
iglobal