Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8948 → Rev 8949

/programs/cmm/lib/fs.h
40,7 → 40,12
dword sizehi;
char name[518];
};
#define ATR_READONLY 1
#define ATR_HIDDEN 2
#define ATR_SYSTEM 4
#define ATR_VOL_LABEL 8
#define ATR_FOLDER 0x10
#define ATR_NONARH 0x20
 
 
:dword GetFileInfo(dword file_path, bdvk_struct)
203,7 → 208,7
$int 0x40
}
 
void read_file(dword path1, buf, size)
:void read_file(dword path1, buf, size)
{
EAX = 68;
EBX = 27;
/programs/cmm/lib/gui.h
53,17 → 53,17
:void DrawWideRectangle(dword x,y,w,h,boder,color1)
{
DrawBar(x, y, w, boder, color1);
DrawBar(x, y+h-boder, w, boder, color1);
DrawBar(x, y+boder, boder, h-boder-boder, color1);
DrawBar(x+w-boder, y+boder, boder, h-boder-boder, color1);
DrawBar(x, y+h-boder, w, boder, EDX);
DrawBar(x, y+boder, boder, h-boder-boder, EDX);
DrawBar(x+w-boder, y+boder, boder, h-boder-boder, EDX);
}
 
:void DrawRectangle3D(dword x,y,w,h,color1,color2)
{
DrawBar(x,y,w+1,1,color1);
DrawBar(x,y+1,1,h-1,color1);
DrawBar(x,y+1,1,h-1,EDX);
DrawBar(x+w,y+1,1,h,color2);
DrawBar(x,y+h,w,1,color2);
DrawBar(x,y+h,w,1,EDX);
}
 
:void DrawCaptButton(dword x,y,w,h,id,color_b, color_t,text)
220,7 → 220,7
{
DrawRectangle(x,y,w,h,col_border);
DrawBar(x+1,y+1,w-1,1,0xFFFfff);
DrawBar(x+1,y+2,1,h-2,0xFFFfff);
DrawBar(x+1,y+2,1,h-2,EDX);
if (col_work!=-1) DrawBar(x+2,y+2,w-2,h-2,col_work);
DrawPopupShadow(x,y,w,h-1,skinned);
}
289,9 → 289,9
DrawBar(x+w+1, y+2, 1, h-2, right);
 
PutPixel(x, y, dots);
PutPixel(x+w+1, y+h+1, dots);
PutPixel(x, y+h+1, dots);
PutPixel(x+w+1, y, dots);
PutPixel(x+w+1, y+h+1, EDX);
PutPixel(x, y+h+1, EDX);
PutPixel(x+w+1, y, EDX);
PutPixel(x, y+h, dark);
PutPixel(x+w+1, y+1, light);
300,15 → 300,13
 
:bool skin_is_dark()
{
dword gray;
dword color_image = #sc.work;
ESI = #sc.work;
 
gray = DSBYTE[color_image]*DSBYTE[color_image];
gray += DSBYTE[color_image+1]*DSBYTE[color_image+1];
gray += DSBYTE[color_image+2]*DSBYTE[color_image+2];
gray = sqrt(gray) / 3;
EDI = DSBYTE[ESI]*DSBYTE[ESI];
EDI += DSBYTE[ESI+1]*DSBYTE[ESI+1];
EDI += DSBYTE[ESI+2]*DSBYTE[ESI+2];
 
if (gray < 65) {
if (sqrt(EDI) / 3 < 65) {
return true;
} else {
return false;
/programs/cmm/lib/kolibri.h
18,7 → 18,7
#define ENTRY_POINT #______INIT______
#endif
 
char os_name[8] = {'M','E','N','U','E','T','0','1'};
char os_name[] = "MENUET01"n;
dword os_version = 0x00000001;
dword start_addr = ENTRY_POINT;
dword final_addr = #______STOP______+32;