Proc_Lib small bugfix
git-svn-id: svn://kolibrios.org@1656 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
7ef2a89c79
commit
1a4a3e0071
@ -178,33 +178,43 @@ OpenDialog_exit
|
|||||||
shr eax,31
|
shr eax,31
|
||||||
test eax,eax
|
test eax,eax
|
||||||
jnz .1
|
jnz .1
|
||||||
|
;----------------------------------------------
|
||||||
.still:
|
.still:
|
||||||
mcall 23,50
|
; The main window of application sometimes
|
||||||
|
; is not present the really. For this reason
|
||||||
|
; not use func 10 and 23, because event 1
|
||||||
|
; is not cleared without call of func 0.
|
||||||
|
; In this case is suitable only func 5 and 11!
|
||||||
|
mcall 5,10
|
||||||
|
mcall 11
|
||||||
cmp eax,1
|
cmp eax,1
|
||||||
jne .no_draw
|
jne .no_draw
|
||||||
|
;----------------------------------------------
|
||||||
|
.draw:
|
||||||
pusha
|
pusha
|
||||||
call od_draw_window
|
call od_draw_window
|
||||||
popa
|
popa
|
||||||
|
;----------------------------------------------
|
||||||
pusha
|
pusha
|
||||||
mcall 9,od_procinfo,-1
|
mcall 9,od_procinfo,-1
|
||||||
mov ecx,[ebx+30] ; PID
|
mov ecx,[ebx+30] ; PID
|
||||||
mcall 18,21
|
mcall 18,21
|
||||||
|
test eax,eax
|
||||||
|
jz @f
|
||||||
|
|
||||||
mov ecx,eax ; WINDOW SLOT
|
mov ecx,eax ; WINDOW SLOT
|
||||||
mcall 18,7
|
mcall 18,7
|
||||||
cmp eax,ecx ; compare ACTIVE and WINDOW SLOT
|
cmp eax,ecx ; compare ACTIVE and WINDOW SLOT
|
||||||
jne @f
|
jne @f
|
||||||
|
|
||||||
mov eax,od_com_area
|
mov eax,od_com_area
|
||||||
; xor ecx,ecx
|
|
||||||
mov ecx,[eax+12]
|
mov ecx,[eax+12]
|
||||||
test ecx,ecx
|
test ecx,ecx
|
||||||
jz @f
|
jz @f
|
||||||
mcall 18,3
|
mcall 18,3
|
||||||
@@:
|
@@:
|
||||||
popa
|
popa
|
||||||
|
;----------------------------------------------
|
||||||
|
|
||||||
.no_draw:
|
.no_draw:
|
||||||
mov eax,od_com_area
|
mov eax,od_com_area
|
||||||
movzx ebx,word [eax]
|
movzx ebx,word [eax]
|
||||||
|
Loading…
Reference in New Issue
Block a user