From 3985e8ead6bca0786d1228cb813d917bb16749ac Mon Sep 17 00:00:00 2001 From: "Mihail Semenyako (mike.dld)" Date: Wed, 1 Feb 2006 07:17:11 +0000 Subject: [PATCH] added workarea setup code + PANEL_HEIGHT constant git-svn-id: svn://kolibrios.org@42 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/panel/trunk/@PANEL.ASM | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/programs/panel/trunk/@PANEL.ASM b/programs/panel/trunk/@PANEL.ASM index ce8d80270a..7847617fcb 100644 --- a/programs/panel/trunk/@PANEL.ASM +++ b/programs/panel/trunk/@PANEL.ASM @@ -32,6 +32,7 @@ icons dd 1 ; 0 defaults ; 1 activate dat db 'PANEL DAT' +PANEL_HEIGHT = 18 ;mainalive db 1 @@ -238,6 +239,10 @@ START: cmp [esi],byte 'x' jne new_number + mcall 48,5 + mov ecx,eax + lea edx,[ebx-PANEL_HEIGHT-1] + mcall 48,6 call set_variables @@ -1016,7 +1021,7 @@ draw_window: add ecx,0*65536+38 cmp [graph_text],1 jne no_text_1 - mov cx,18 + mov cx,PANEL_HEIGHT add ecx,20*65536 no_text_1: mov eax, 0 ; DEFINE AND DRAW WINDOW