Eolite: fix

git-svn-id: svn://kolibrios.org@2242 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2011-09-26 14:44:58 +00:00
parent fd524f2a8c
commit de5dc8e3f0
2 changed files with 6 additions and 10 deletions

View File

@ -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);

View File

@ -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;