47,9 → 47,7 |
; mov ebp,1 |
call draw_window ; redraw all window |
still: |
mov eax,23 ; wait here for event |
mov ebx,100 ; 1 sec. |
mcall |
mcall 23,100 ; wait here for event 1 sec. |
|
dec eax ; redraw request ? |
jz red |
77,8 → 75,7 |
|
|
key: ; key |
mov eax,2 |
mcall |
mcall 2 |
|
cmp ah,184 ; PageUp |
jz pgdn |
193,8 → 190,9 |
.nodelete: |
;create terminate process button |
mov eax,8 |
mov ebx,(15-offset_x)*65536+100-offset_y |
mov ebx,(15-offset_x)*65536+121-offset_y |
mov ecx,[curposy] |
;sub ecx,1 |
shl ecx,16 |
mov cx,10 |
mov edx,[index] |
541,23 → 539,19 |
test ebp,ebp |
jz .show_process_info |
|
mov eax,12 ; function 12:tell os about windowdraw |
; mov ebx,1 ; 1, start of draw |
xor ebx,ebx |
inc ebx |
mcall |
mcall 12, 1 |
|
; DRAW WINDOW |
xor eax,eax ; function 0 : define and draw window |
mov ebx,[winxpos] ; [x start] *65536 + [x size] |
mov ecx,[winypos] ; [y start] *65536 + [y size] |
mov edx,0x34ddffdd ;ffffff ; color of work area RRGGBB,8->color |
mov edx,0x34ddffdd ; color of work area RRGGBB,8->color |
mov edi,title ; WINDOW CAPTION; |
mcall |
|
|
add eax,4 ; function 4 : write text to window |
mov ebx,(22-offset_x)*65536+35-offset_y ; draw info text with function 4 |
mov ebx,(22-offset_x)*65536+35-offset_y |
xor ecx,ecx |
mov edx,text |
mov esi,text_len |
643,9 → 637,7 |
;print application name in text box |
; call print_text |
|
mov eax,12 ; function 12:tell os about windowdraw |
mov ebx,2 ; 2, end of draw |
mcall |
mcall 12, 2 |
|
.end_redraw: |
ret |