159,6 → 159,14 |
|
//------------------------------------------------------------------------------ |
|
//eax = ÿçûê ñèñòåìû (1=eng, 2=fi, 3=ger, 4=rus) |
inline fastcall int GetSystemLanguage(){ |
EAX = 26; |
EBX = 5; |
$int 0x40 |
RETURN EAX; |
} |
|
inline fastcall void DrawTitle(dword ECX) |
{ |
EAX = 71; |
219,6 → 227,7 |
$jnz l1 |
} |
|
|
byte fastcall TestBit(EAX, CL) |
{ |
$shr eax,cl |
372,6 → 381,22 |
AL=symbol; |
} |
|
/*int hex2char(char c) |
{ |
if (c <=9) |
return (c+48); |
|
return (c - 10 + 'a'); |
} |
|
int hex2char(dword c) |
{ |
if (c <=9) |
return (c+48); |
|
return (c - 10 + 'a'); |
}*/ |
|
byte mas[66] = "î ¡æ¤¥ä£å¨©ª«¬®¯ïàáâ㦢ìë§èíéçê
"; |
inline fastcall void koitodos(dword EDI) |
{ |
532,7 → 557,7 |
$int 0x40; |
} |
|
void DrawRegion(dword x,y,width,height,color1) |
:void DrawRegion(dword x,y,width,height,color1) |
{ |
DrawBar(x,y,width,1,color1); //¯®«®á £®à ᢥàåã |
DrawBar(x,y+height,width,1,color1); //¯®«®á £®à ᨧã |
540,7 → 565,7 |
DrawBar(x+width,y,1,height+1,color1); //¯®«®á ¢¥àåã á¯à ¢ |
} |
|
void DrawRegion_3D(dword x,y,width,height,color1,color2) |
:void DrawRegion_3D(dword x,y,width,height,color1,color2) |
{ |
DrawBar(x,y,width+1,1,color1); //¯®«®á £®à ᢥàåã |
DrawBar(x,y+1,1,height-1,color1); //¯®«®á á«¥¢ |
557,7 → 582,7 |
WriteText(-strlen(text)*6+width/2+x+1,height/2-3+y,0x80,0,text,0); |
} |
|
void DrawCircle(int x, y, r) |
:void DrawCircle(int x, y, r) |
{ |
int i; float px=0, py=r, ii = r * 3.1415926 * 2; |
FOR (i = 0; i < ii; i++) |