From fd524f2a8c6d2e3357db557ce4b23d98dae5c995 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 26 Sep 2011 14:30:45 +0000 Subject: [PATCH] Eolite: small code optimization git-svn-id: svn://kolibrios.org@2241 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/fs/Eolite/trunk/include/LVabout.h-- | 2 -- programs/fs/Eolite/trunk/lib/kolibri.h-- | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/programs/fs/Eolite/trunk/include/LVabout.h-- b/programs/fs/Eolite/trunk/include/LVabout.h-- index 96e021fe15..927866cafb 100644 --- a/programs/fs/Eolite/trunk/include/LVabout.h-- +++ b/programs/fs/Eolite/trunk/include/LVabout.h-- @@ -44,7 +44,6 @@ void authors() IF (GetKey()==27) ExitProcess(); break; case evReDraw: - WindowRedrawStatus(1); DefineAndDrawWindow(500,200,181,256,0x34,0x10EFEBEF,0,0,"About Eolite"); DrawBar(0,0,172,50,0x8494C4); //голубое сзади PutPaletteImage(#logo,85,85,43,7,#logo_pal); @@ -56,7 +55,6 @@ void authors() WriteText(12,170,0x80,0,"Visit",0); DrawLink(48,170,23, "kolibri-os.narod.ru"); //ссылкa DrawFlatButton(85,190,70,22,0,0xE4DFE1, "Close"); - WindowRedrawStatus(2); } } diff --git a/programs/fs/Eolite/trunk/lib/kolibri.h-- b/programs/fs/Eolite/trunk/lib/kolibri.h-- index d493cabb82..6416471091 100644 --- a/programs/fs/Eolite/trunk/lib/kolibri.h-- +++ b/programs/fs/Eolite/trunk/lib/kolibri.h-- @@ -156,15 +156,19 @@ inline fastcall void Pause(dword EBX){ } //------------------------------------------------------------------------------ -void DefineAndDrawWindow(dword x,y,sizeX,sizeY,byte mainAreaType,dword - mainAreaColor,byte headerType,dword headerColor,EDI) +void DefineAndDrawWindow(dword x,y,sizeX,sizeY, +byte mainAreaType, dword mainAreaColor,byte headerType,dword headerColor,EDI) { + WindowRedrawStatus(1); + EBX = x << 16 + sizeX; ECX = y << 16 + sizeY; EDX = mainAreaType << 24 | mainAreaColor; ESI = headerType << 24 | headerColor; $xor eax,eax $int 0x40 + + WindowRedrawStatus(2); } inline fastcall void CreateThread(dword ECX,EDX)