2007-02-01 12:46:48 +03:00
|
|
|
|
;====================================================================
|
|
|
|
|
;===== <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ===========================================
|
|
|
|
|
;====================================================================
|
2006-11-02 17:18:23 +03:00
|
|
|
|
scr_window:
|
|
|
|
|
.start:
|
|
|
|
|
.red:
|
2009-06-01 22:25:07 +04:00
|
|
|
|
call .draw_window
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.still:
|
2013-03-13 22:06:46 +04:00
|
|
|
|
wait_event .red, .close
|
2009-06-01 22:25:07 +04:00
|
|
|
|
jmp .still
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
.draw_window:
|
2009-06-01 22:25:07 +04:00
|
|
|
|
start_draw_window
|
|
|
|
|
xor eax,eax
|
|
|
|
|
movsx ebx,word [scr.width]
|
|
|
|
|
movsx ecx,word [scr.height]
|
|
|
|
|
;xor edx,edx
|
|
|
|
|
mov edx,0x01000000
|
|
|
|
|
xor esi,esi
|
|
|
|
|
xor edi,edi
|
|
|
|
|
mcall
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2009-06-01 22:25:07 +04:00
|
|
|
|
mov eax,7
|
|
|
|
|
mov ebx,dword [scr_buf.ptr]
|
|
|
|
|
mov ecx,dword [scr_buf.size]
|
|
|
|
|
xor edx,edx
|
|
|
|
|
mcall
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2009-06-01 22:25:07 +04:00
|
|
|
|
mov eax,13
|
|
|
|
|
mov ebx,19*65536+231
|
|
|
|
|
mov ecx,19*65536+10
|
|
|
|
|
mov edx,0x00FF00
|
|
|
|
|
mcall
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2009-06-01 22:25:07 +04:00
|
|
|
|
mov edi,.label
|
|
|
|
|
call draw_label
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2009-06-01 22:25:07 +04:00
|
|
|
|
stop_draw_window
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
2009-06-02 22:09:29 +04:00
|
|
|
|
.close:
|
|
|
|
|
bt word [ch3.flags],1 ; <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ?
|
|
|
|
|
jnc @f
|
|
|
|
|
|
|
|
|
|
mov eax,60
|
|
|
|
|
mov ebx,2
|
|
|
|
|
mov ecx,[app.pid]
|
|
|
|
|
mov edx,messages.act_window
|
|
|
|
|
mov esi,2
|
|
|
|
|
mcall
|
|
|
|
|
@@:
|
|
|
|
|
jmp close
|
|
|
|
|
|
2012-03-08 00:30:06 +04:00
|
|
|
|
.label label 20,20,0x80000000,keyforexit
|