console.obj: rolled-up bug fixed

git-svn-id: svn://kolibrios.org@3034 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2012-11-13 10:07:56 +00:00
parent 88dd19b554
commit 2c7df0dcca
2 changed files with 44 additions and 1 deletions

View File

@ -1,2 +1,3 @@
fasm console.asm console.obj fasm console.asm console.obj
kpack.exe console.obj kpack console.obj
pause

View File

@ -2102,12 +2102,27 @@ con.draw_window:
@@: @@:
xor eax, eax xor eax, eax
int 0x40 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 call con.draw_image
.exit:
push 12 push 12
pop eax pop eax
push 2 push 2
pop ebx pop ebx
int 0x40 int 0x40
ret ret
con.draw_image: con.draw_image:
@ -2270,6 +2285,33 @@ con.def_scr_height dd 300
con.def_wnd_x dd 200 con.def_wnd_x dd 200
con.def_wnd_y dd 50 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 con.vscroll_pt dd -1
align 16 align 16