142,7 → 142,9 |
|
draw_window: |
|
mcall 12,1 |
mov eax,12 ; tell os about windowdraw |
mov ebx,1 ; 1, start of draw |
mcall |
|
mov eax,0 ; DRAW WINDOW |
mov ebx,1*65536+200 ; [x start] *65536 + [x size] |
153,7 → 155,9 |
|
call palette ; display color palette |
|
mcall 12, 2 |
mov eax,12 ; tell os about windowdraw |
mov ebx,2 ; 2, end of draw |
mcall |
|
ret |
|
274,14 → 278,8 |
ret |
|
help: |
mcall 48,4 |
mov ecx, eax |
shl ecx, 16 |
add ecx, 236 |
sub ecx, eax |
|
|
mov ebx,5*65536+191 ; x and width |
mov ebx,4*65536+192 ; x and width |
mov ecx,20*65536+216 ; y and depth |
mov edx,0x465e8f ; dark denim color |
mov eax,13 ; write text funx |
mcall |
307,8 → 305,12 |
jne h2 ; nope |
mov eax,2 ; yep, burn it |
mcall |
h2: |
call draw_window |
h2: mov ebx,4*65536+192 ; y and width |
mov ecx,20*65536+216 ; x and depth |
mov edx,0x00000 ; restore black bkg |
mov eax,13 ; draw bar funx |
mcall |
call palette ; redraw color palette |
|
ret |
|