2007-02-01 10:46:48 +01:00
|
|
|
|
;====================================================================
|
|
|
|
|
;===== <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ===========================================
|
|
|
|
|
;====================================================================
|
2006-11-02 15:18:23 +01:00
|
|
|
|
scr_window:
|
|
|
|
|
.start:
|
|
|
|
|
.red:
|
2009-06-01 20:25:07 +02:00
|
|
|
|
call .draw_window
|
2006-11-02 15:18:23 +01:00
|
|
|
|
.still:
|
2009-06-02 20:09:29 +02:00
|
|
|
|
wait_event .red,.close
|
2009-06-01 20:25:07 +02:00
|
|
|
|
jmp .still
|
2006-11-02 15:18:23 +01:00
|
|
|
|
|
|
|
|
|
.draw_window:
|
2009-06-01 20:25:07 +02: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 15:18:23 +01:00
|
|
|
|
|
2009-06-01 20:25:07 +02:00
|
|
|
|
mov eax,7
|
|
|
|
|
mov ebx,dword [scr_buf.ptr]
|
|
|
|
|
mov ecx,dword [scr_buf.size]
|
|
|
|
|
xor edx,edx
|
|
|
|
|
mcall
|
2006-11-02 15:18:23 +01:00
|
|
|
|
|
2009-06-01 20:25:07 +02:00
|
|
|
|
mov eax,13
|
|
|
|
|
mov ebx,19*65536+231
|
|
|
|
|
mov ecx,19*65536+10
|
|
|
|
|
mov edx,0x00FF00
|
|
|
|
|
mcall
|
2006-11-02 15:18:23 +01:00
|
|
|
|
|
2009-06-01 20:25:07 +02:00
|
|
|
|
mov edi,.label
|
|
|
|
|
call draw_label
|
2006-11-02 15:18:23 +01:00
|
|
|
|
|
2009-06-01 20:25:07 +02:00
|
|
|
|
stop_draw_window
|
2006-11-02 15:18:23 +01:00
|
|
|
|
ret
|
2009-06-02 20:09:29 +02: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-07 21:30:06 +01:00
|
|
|
|
.label label 20,20,0x80000000,keyforexit
|