forked from KolibriOS/kolibrios
Change cursor when loading applications. The new cursor with the clock.
git-svn-id: svn://kolibrios.org@2497 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0dcb75ec9e
commit
e24480a9ce
@ -81,7 +81,7 @@ proc fs_execute
|
|||||||
hdr_i_end dd ? ;0x14
|
hdr_i_end dd ? ;0x14
|
||||||
endl
|
endl
|
||||||
|
|
||||||
pushad
|
call set_default_cursor_clock
|
||||||
|
|
||||||
mov [flags], edx
|
mov [flags], edx
|
||||||
|
|
||||||
@ -113,6 +113,7 @@ proc fs_execute
|
|||||||
.bigfilename:
|
.bigfilename:
|
||||||
popad
|
popad
|
||||||
mov eax, -ERROR_FILE_NOT_FOUND
|
mov eax, -ERROR_FILE_NOT_FOUND
|
||||||
|
call set_default_cursor_arrow
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.namecopied:
|
.namecopied:
|
||||||
@ -127,6 +128,7 @@ proc fs_execute
|
|||||||
@@:
|
@@:
|
||||||
lea eax, [filename]
|
lea eax, [filename]
|
||||||
stdcall load_file, eax
|
stdcall load_file, eax
|
||||||
|
|
||||||
mov esi, -ERROR_FILE_NOT_FOUND
|
mov esi, -ERROR_FILE_NOT_FOUND
|
||||||
test eax, eax
|
test eax, eax
|
||||||
jz .err_file
|
jz .err_file
|
||||||
@ -237,6 +239,7 @@ end if
|
|||||||
xor ebx, ebx
|
xor ebx, ebx
|
||||||
mov [application_table_status], ebx;unlock application_table_status mutex
|
mov [application_table_status], ebx;unlock application_table_status mutex
|
||||||
mov eax, [process_number];set result
|
mov eax, [process_number];set result
|
||||||
|
call set_default_cursor_arrow
|
||||||
ret
|
ret
|
||||||
.failed:
|
.failed:
|
||||||
mov eax, [save_cr3]
|
mov eax, [save_cr3]
|
||||||
@ -248,6 +251,7 @@ end if
|
|||||||
xor eax, eax
|
xor eax, eax
|
||||||
mov [application_table_status], eax
|
mov [application_table_status], eax
|
||||||
mov eax, esi
|
mov eax, esi
|
||||||
|
call set_default_cursor_arrow
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
@ -333,6 +333,7 @@ _WinMapAddress rd 1
|
|||||||
_WinMapSize rd 1
|
_WinMapSize rd 1
|
||||||
|
|
||||||
def_cursor rd 1
|
def_cursor rd 1
|
||||||
|
def_cursor_clock rd 1
|
||||||
current_cursor rd 1
|
current_cursor rd 1
|
||||||
hw_cursor rd 1
|
hw_cursor rd 1
|
||||||
cur_saved_base rd 1
|
cur_saved_base rd 1
|
||||||
|
BIN
kernel/trunk/video/arrow_clock.cur
Normal file
BIN
kernel/trunk/video/arrow_clock.cur
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
@ -1014,6 +1014,8 @@ align 4
|
|||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
@@:
|
@@:
|
||||||
|
stdcall load_cursor, clock_arrow, dword LOAD_FROM_MEM
|
||||||
|
mov [def_cursor_clock], eax
|
||||||
stdcall load_cursor, def_arrow, dword LOAD_FROM_MEM
|
stdcall load_cursor, def_arrow, dword LOAD_FROM_MEM
|
||||||
mov [def_cursor], eax
|
mov [def_cursor], eax
|
||||||
ret
|
ret
|
||||||
@ -1025,8 +1027,28 @@ align 4
|
|||||||
mov [_display.move_cursor], eax
|
mov [_display.move_cursor], eax
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
set_default_cursor_clock:
|
||||||
|
pushad
|
||||||
|
stdcall set_cursor, [def_cursor_clock]
|
||||||
|
mov [redrawmouse_unconditional], 1
|
||||||
|
popad
|
||||||
|
call __sys_draw_pointer
|
||||||
|
ret
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
set_default_cursor_arrow:
|
||||||
|
pushad
|
||||||
|
stdcall set_cursor, [def_cursor]
|
||||||
|
mov [redrawmouse_unconditional], 1
|
||||||
|
popad
|
||||||
|
call __sys_draw_pointer
|
||||||
|
ret
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
def_arrow:
|
def_arrow:
|
||||||
file 'arrow.cur'
|
file 'arrow.cur'
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
clock_arrow:
|
||||||
|
file 'arrow_clock.cur'
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user