Board: consider that @panel could be in the top

git-svn-id: svn://kolibrios.org@4876 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2014-04-22 17:32:55 +00:00
parent 1922dd81c6
commit c68d6919e5

View File

@ -3,7 +3,7 @@
; ;
; See f63 ; See f63
; ;
; Compile with FASM for Menuet ; Compile with FASM for KolibriOS
; ;
WRITE_LOG equ 1 WRITE_LOG equ 1
P_LEN equ 11 P_LEN equ 11
@ -209,14 +209,23 @@ add_char:
.ok: .ok:
pop esi pop esi
ret ret
macro GetClientTop
{
}
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; ********************************************* ; *********************************************
; ******* WINDOW DEFINITIONS AND DRAW ******** ; ******* WINDOW DEFINITIONS AND DRAW ********
; ********************************************* ; *********************************************
draw_window: draw_window:
mcall 12,1 ; 1, start of draw mcall 12,1 ; 1, start of draw
mcall 48, 5 ; GetClientTop
shr ebx, 16
mov ecx,ebx
shl ecx,16
add ecx,MAXSTRINGS*10+45 ; [y start] *65536 + [y size]
xor eax,eax ; function 0 : define and draw window xor eax,eax ; function 0 : define and draw window
mov ecx,MAXSTRINGS*10+45 ; [y start] *65536 + [y size]
; mov edx,[sc.work] ; color of work area RRGGBB,8->color gl ; mov edx,[sc.work] ; color of work area RRGGBB,8->color gl
mov edx,0xffffff mov edx,0xffffff
or edx,0x14000000 or edx,0x14000000