From e24480a9ce5bc360b79390885165d7d02fb341cf Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Thu, 22 Mar 2012 19:12:53 +0000 Subject: [PATCH] Change cursor when loading applications. The new cursor with the clock. git-svn-id: svn://kolibrios.org@2497 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/taskman.inc | 6 +++++- kernel/trunk/data32.inc | 1 + kernel/trunk/video/arrow_clock.cur | Bin 0 -> 2238 bytes kernel/trunk/video/cursors.inc | 22 ++++++++++++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 kernel/trunk/video/arrow_clock.cur diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index d6b19af346..442927e68d 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -81,7 +81,7 @@ proc fs_execute hdr_i_end dd ? ;0x14 endl - pushad + call set_default_cursor_clock mov [flags], edx @@ -113,6 +113,7 @@ proc fs_execute .bigfilename: popad mov eax, -ERROR_FILE_NOT_FOUND + call set_default_cursor_arrow ret .namecopied: @@ -127,6 +128,7 @@ proc fs_execute @@: lea eax, [filename] stdcall load_file, eax + mov esi, -ERROR_FILE_NOT_FOUND test eax, eax jz .err_file @@ -237,6 +239,7 @@ end if xor ebx, ebx mov [application_table_status], ebx;unlock application_table_status mutex mov eax, [process_number];set result + call set_default_cursor_arrow ret .failed: mov eax, [save_cr3] @@ -248,6 +251,7 @@ end if xor eax, eax mov [application_table_status], eax mov eax, esi + call set_default_cursor_arrow ret endp diff --git a/kernel/trunk/data32.inc b/kernel/trunk/data32.inc index b1effe8380..d147213d4f 100644 --- a/kernel/trunk/data32.inc +++ b/kernel/trunk/data32.inc @@ -333,6 +333,7 @@ _WinMapAddress rd 1 _WinMapSize rd 1 def_cursor rd 1 +def_cursor_clock rd 1 current_cursor rd 1 hw_cursor rd 1 cur_saved_base rd 1 diff --git a/kernel/trunk/video/arrow_clock.cur b/kernel/trunk/video/arrow_clock.cur new file mode 100644 index 0000000000000000000000000000000000000000..1187c4899bbf4006c8343fc835afdf04a4b8bfc3 GIT binary patch literal 2238 zcmeH|J#K?Q5QQIxmDAxWEtDx!rXxqn0iu}WF@Lk3_di&IF6X63G?LwGkd5muxy}gplqOQ;9qVa(C!AW z>l_f3<$x~hYlIttGIwFgCun4=Kq#jR3&q1*givqO6LwAFyr=RWO%DkrSYndIvP~sZ ze8ath^CmdF&5sRYEl>4N$oZ+iH*oBgguVZQ#aA3x$eJ1FX>)Z&HaH8?@Tz}