forked from KolibriOS/kolibrios
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:
parent
30d819787b
commit
1e9db5557e
@ -398,6 +398,8 @@ hd_entries rd 1 ;unused ? 0xfe10
|
|||||||
mouse_active rd 1
|
mouse_active rd 1
|
||||||
mouse_pause rd 1
|
mouse_pause rd 1
|
||||||
|
|
||||||
|
redrawmouse_unconditional rd 1
|
||||||
|
|
||||||
img_background rd 1
|
img_background rd 1
|
||||||
mem_BACKGROUND rd 1
|
mem_BACKGROUND rd 1
|
||||||
static_background_data rd 1
|
static_background_data rd 1
|
||||||
|
@ -415,6 +415,13 @@ __sys_draw_pointer:
|
|||||||
movzx edx, word [Y_UNDER]
|
movzx edx, word [Y_UNDER]
|
||||||
movzx ebx, word [MOUSE_Y]
|
movzx ebx, word [MOUSE_Y]
|
||||||
movzx eax, word [MOUSE_X]
|
movzx eax, word [MOUSE_X]
|
||||||
|
cmp [redrawmouse_unconditional], 0
|
||||||
|
je @f
|
||||||
|
mov [redrawmouse_unconditional], 0
|
||||||
|
jmp redrawmouse
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
cmp eax, ecx
|
cmp eax, ecx
|
||||||
jne redrawmouse
|
jne redrawmouse
|
||||||
cmp ebx, edx
|
cmp ebx, edx
|
||||||
|
@ -1967,6 +1967,8 @@ restore_default_cursor_before_killing:
|
|||||||
push esi
|
push esi
|
||||||
call [_display.select_cursor]
|
call [_display.select_cursor]
|
||||||
mov [current_cursor], esi
|
mov [current_cursor], esi
|
||||||
|
mov [redrawmouse_unconditional], 1
|
||||||
|
call [draw_pointer]
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
iglobal
|
iglobal
|
||||||
|
Loading…
Reference in New Issue
Block a user