From de5dc8e3f07f44f31201414142f788a5923a4b91 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 26 Sep 2011 14:44:58 +0000 Subject: [PATCH] Eolite: fix git-svn-id: svn://kolibrios.org@2242 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/fs/Eolite/trunk/Eolite.c-- | 2 -- programs/fs/Eolite/trunk/lib/kolibri.h-- | 14 ++++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/programs/fs/Eolite/trunk/Eolite.c-- b/programs/fs/Eolite/trunk/Eolite.c-- index 123af20aef..7d20d54b09 100644 --- a/programs/fs/Eolite/trunk/Eolite.c-- +++ b/programs/fs/Eolite/trunk/Eolite.c-- @@ -366,9 +366,7 @@ int pressed_y; inline fastcall void draw_window() { - WindowRedrawStatus(1); DefineAndDrawWindow(98,90,582,482,0x73,0x10E4DFE1,0,0,title); - WindowRedrawStatus(2); Form.GetInfo(#Form, SelfInfo); IF (Form.height==GetSkinWidth()+3) return; //ничего не делать если окно схлопнуто в заголовок IF (Form.height<280) MoveSize(OLD,OLD,OLD,280); diff --git a/programs/fs/Eolite/trunk/lib/kolibri.h-- b/programs/fs/Eolite/trunk/lib/kolibri.h-- index 6416471091..2976529234 100644 --- a/programs/fs/Eolite/trunk/lib/kolibri.h-- +++ b/programs/fs/Eolite/trunk/lib/kolibri.h-- @@ -159,7 +159,9 @@ inline fastcall void Pause(dword EBX){ void DefineAndDrawWindow(dword x,y,sizeX,sizeY, byte mainAreaType, dword mainAreaColor,byte headerType,dword headerColor,EDI) { - WindowRedrawStatus(1); + EAX = 12; + EBX = 1; + $int 0x40 EBX = x << 16 + sizeX; ECX = y << 16 + sizeY; @@ -168,7 +170,9 @@ byte mainAreaType, dword mainAreaColor,byte headerType,dword headerColor,EDI) $xor eax,eax $int 0x40 - WindowRedrawStatus(2); + EAX = 12; + EBX = 2; + $int 0x40 } inline fastcall void CreateThread(dword ECX,EDX) @@ -184,12 +188,6 @@ inline fastcall void DrawTitle(dword ECX){ $int 0x40; } - -inline fastcall void WindowRedrawStatus(dword EBX){ - EAX = 12; - $int 0x40 -} - inline fastcall dword GetSkinWidth(){ EAX = 48; EBX = 4;