forked from KolibriOS/kolibrios
remove deleted cursor from cursor's list
git-svn-id: svn://kolibrios.org@2337 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
294e540225
commit
adce55500e
@ -332,19 +332,13 @@ create_cursor:
|
||||
|
||||
stdcall init_cursor, eax, esi
|
||||
|
||||
mov eax, [.hcursor]
|
||||
lea eax, [eax+CURSOR.list_next]
|
||||
mov ecx, [.hcursor]
|
||||
lea ecx, [ecx+CURSOR.list_next]
|
||||
lea edx, [_display.cr_list.next]
|
||||
|
||||
pushfd
|
||||
cli
|
||||
mov ecx, [edx]
|
||||
|
||||
mov [eax], ecx
|
||||
mov [eax+4], edx
|
||||
|
||||
mov [ecx+4], eax
|
||||
mov [edx], eax
|
||||
list_add ecx, edx ;list_add_tail(new, head)
|
||||
popfd
|
||||
|
||||
mov eax, [.hcursor]
|
||||
@ -458,8 +452,16 @@ destroy_cursor:
|
||||
|
||||
push eax
|
||||
stdcall kernel_free, [eax+CURSOR.base]
|
||||
pop eax
|
||||
|
||||
mov eax, [esp]
|
||||
lea eax, [eax+CURSOR.list_next]
|
||||
|
||||
pushfd
|
||||
cli
|
||||
list_del eax
|
||||
popfd
|
||||
|
||||
pop eax
|
||||
call destroy_kernel_object
|
||||
ret
|
||||
|
||||
@ -792,14 +794,6 @@ init_display:
|
||||
ret
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
align 4
|
||||
def_arrow:
|
||||
file 'arrow.cur'
|
||||
|
Loading…
Reference in New Issue
Block a user