forked from KolibriOS/kolibrios
Eolite: small code optimization
git-svn-id: svn://kolibrios.org@2241 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2d014eec26
commit
fd524f2a8c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user