/programs/cmm/eolite/include/about_dialog.h |
---|
25,7 → 25,7 |
DefineAndDrawWindow(600,150,181,232+GetSkinHeight(),0x34,col_work,"About Eolite"); |
DrawBar(0,0,172,50,0x8494C4); |
PutPaletteImage(#logo,85,85,43,7,8,#logo_pal); |
WriteTextB(46,100,0x90,0xBF40BF,"Eolite v1.64"); |
WriteTextB(46,100,0x90,0xBF40BF,ABOUT_TITLE); |
WriteText(55,120,0x80,0,"Developers:"); |
WriteText(39,130,0x80,0,"Leency & Veliant"); |
WriteText(45,140,0x80,0,"KolibriOS Team"); |
/programs/cmm/eolite/include/some_code.h |
---|
13,20 → 13,6 |
} |
dword ConvertSize(dword bytes) |
{ |
unsigned char size_prefix[8], size_nm[4]; |
if (bytes>=1073741824) strcpy(#size_nm, " Gb"); |
else if (bytes>=1048576) strcpy(#size_nm, " Mb"); |
else if (bytes>=1024) strcpy(#size_nm, " Kb"); |
else strcpy(#size_nm, " b "); |
while (bytes>1023) bytes/=1024; |
strcpy(#size_prefix, itoa(bytes)); |
strcat(#size_prefix, #size_nm); |
return #size_prefix; |
} |
dword col_palette[14] = {0xD2D3D3,0xD4D4D4,0xD6D5D6,0xD8D7D8,0xDAD8D9,0xDCDADB, |
0xDFDCDD,0xE1DDDE,0xE2DEE0,0xE4DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1,0xE3DFE1}; |