a logic bugfix.

git-svn-id: svn://kolibrios.org@1100 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Alexey Teplov ( 2009-06-02 18:09:29 +00:00
parent d912f84b17
commit 834b4db346
2 changed files with 25 additions and 5 deletions

View File

@ -164,16 +164,21 @@ ipc:
min_window min_window
jmp .clear_ipc jmp .clear_ipc
@@: @@:
cmp word [app_ipc+8],3
jne @f
mov ecx,[slot_n]
activ_window
jmp .clear_ipc
@@:
call draw_number call draw_number
call dr_st call dr_st
.clear_ipc: .clear_ipc:
cld cld
xor eax,eax xor eax,eax
mov ecx,32 mov ecx,32/4
mov edi,app_ipc mov edi,app_ipc
rep stosb rep stosd
jmp still jmp still
p_close: p_close:
@ -314,7 +319,9 @@ shoot:
bt dword [ch2.flags],1 ; 祚<><E7A59A>碪 悚陋 能奶能桑洫瘔<E6B4AB> ? bt dword [ch2.flags],1 ; 祚<><E7A59A>碪 悚陋 能奶能桑洫瘔<E6B4AB> ?
jnc @f jnc @f
call show_scr_window call show_scr_window
ret
@@: @@:
bt word [ch3.flags],1 ; <E295B3>陋◢碪 悚陋 ? bt word [ch3.flags],1 ; <E295B3>陋◢碪 悚陋 ?
jnc @f jnc @f
@ -575,7 +582,7 @@ messages:
.draw_number dw 0 .draw_number dw 0
.draw_status dw 1 .draw_status dw 1
.min_window dw 2 .min_window dw 2
.act_window dw 3
grab_text: grab_text:
db title,0 db title,0

View File

@ -6,7 +6,7 @@ scr_window:
.red: .red:
call .draw_window call .draw_window
.still: .still:
wait_event .red,close wait_event .red,.close
jmp .still jmp .still
.draw_window: .draw_window:
@ -37,6 +37,19 @@ scr_window:
stop_draw_window stop_draw_window
ret ret
.close:
bt word [ch3.flags],1 ; ¢®ááâ ­®¢¨âì ®ª­® ?
jnc @f
mov eax,60
mov ebx,2
mov ecx,[app.pid]
mov edx,messages.act_window
mov esi,2
mcall
@@:
jmp close
.label label 20,20,0x80000000,$+4 .label label 20,20,0x80000000,$+4
db '<27>â® ¢ è á­¨¬®ª. ‚ë室 - «î¡ ï ª« ¢¨è .',0 db '<27>â® ¢ è á­¨¬®ª. ‚ë室 - «î¡ ï ª« ¢¨è .',0