From 2c7df0dcca0bb0180d76dbf4b0566d5ce485a9dd Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Tue, 13 Nov 2012 10:07:56 +0000 Subject: [PATCH] console.obj: rolled-up bug fixed git-svn-id: svn://kolibrios.org@3034 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/console/build.bat | 3 +- .../develop/libraries/console/console.asm | 42 +++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/programs/develop/libraries/console/build.bat b/programs/develop/libraries/console/build.bat index c3aab50ae4..b968338fb1 100644 --- a/programs/develop/libraries/console/build.bat +++ b/programs/develop/libraries/console/build.bat @@ -1,2 +1,3 @@ fasm console.asm console.obj -kpack.exe console.obj \ No newline at end of file +kpack console.obj +pause \ No newline at end of file diff --git a/programs/develop/libraries/console/console.asm b/programs/develop/libraries/console/console.asm index 56e703a0af..531262fdd5 100644 --- a/programs/develop/libraries/console/console.asm +++ b/programs/develop/libraries/console/console.asm @@ -2102,12 +2102,27 @@ con.draw_window: @@: xor eax, eax int 0x40 + ;Leency{ + mov eax,9 + mov ebx,process_info_buffer + mov ecx,-1 + int 0x40 + mov eax,[ebx+70] + mov [window_status],eax + test [window_status],100b ; window is rolled up + jnz .exit + test [window_status],10b ; window is minimized to panel + jnz .exit + ;}Leency - I'm in diamond code... call con.draw_image + +.exit: push 12 pop eax push 2 pop ebx int 0x40 + ret con.draw_image: @@ -2270,6 +2285,33 @@ con.def_scr_height dd 300 con.def_wnd_x dd 200 con.def_wnd_y dd 50 + +struc process_info +{ + cpu_usage dd ? ; +0 + window_stack_position dw ? ; +4 + window_stack_value dw ? ; +6 + dw ? ; +8 + process_name rb 12 ; +10 + memory_start dd ? ; +22 + used_memory dd ? ; +26 + PID dd ? ; +30 + box.x dd ? ; +34 + box.y dd ? ; +38 + box.width dd ? ; +42 + box.height dd ? ; +46 + slot_state dw ? ; +50 + dw ? ; +52 + client_box.x dd ? ; +54 + client_box.y dd ? ; +58 + client_box.width dd ? ; +62 + client_box.height dd ? ; +66 + wnd_state db ? ; +70 + rb (1024-71) +} +process_info_buffer process_info +window_status rd 1 + con.vscroll_pt dd -1 align 16