Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5420 → Rev 5421

/programs/cmm/lib/file_system.h
23,20 → 23,7
char name[518];
};
 
inline fastcall void SetCurDir( ECX)
{
$mov eax,30
$mov ebx,1
$int 0x40
}
 
inline fastcall void GetCurDir( ECX, EDX)
{
$mov eax,30
$mov ebx,2
$int 0x40
}
 
///////////////////////////
// Ïàðàìåòðû ôàéëà //
///////////////////////////
227,9 → 214,9
return error;
}
 
:void notify(dword notify_param)
:dword notify(dword notify_param)
{
RunProgram("@notify", notify_param);
return RunProgram("@notify", notify_param);
}
 
:dword abspath(dword relative_path) //GetAbsolutePathFromRelative()
/programs/cmm/lib/kolibri.h
240,6 → 240,13
$int 0x40
}
 
inline fastcall int MinimizeWindow()
{
EAX = 18;
EBX = 10;
$int 0x40
}
 
inline fastcall int CreateThread( ECX,EDX)
{
$mov eax,51
324,6 → 331,24
$and eax,0x0000FFFF
}
 
inline fastcall int GetClientTop()
{
$mov eax, 48
$mov ebx, 5
$int 0x40
$mov eax, ebx
$shr eax, 16
}
 
inline fastcall int GetClientHeight()
{
$mov eax, 48
$mov ebx, 5
$int 0x40
$mov eax, ebx
}
 
 
inline fastcall dword LoadLibrary( ECX)
{
$mov eax, 68
/programs/cmm/lib/list_box.h
19,21 → 19,21
//void debug_values();
};
 
/*
void llist::debug_values()
{
debug("current: ");
debugi(current);
debug("first: ");
debugi(first);
debug("visible: ");
debugi(visible);
debug("count: ");
debugi(count);
}
*/
 
// void llist::debug_values()
// {
// debug("current: ");
// debugi(current);
// debug("first: ");
// debugi(first);
// debug("visible: ");
// debugi(visible);
// debug("count: ");
// debugi(count);
// }
 
 
 
void llist::ClearList()
{
count = visible = first = current = 0;
65,7 → 65,8
}
if (scroll_state == 1)
{
if (visible+first+3 >= count) first = count - visible; else first+=2;
if (visible + first == count) return 0;
if (visible+first+3 > count) first = count - visible; else first+=2;
return 1;
}
return 0;
/programs/cmm/lib/patterns/libimg_load_skin.h
6,7 → 6,7
{
dword image_pointer;
image_pointer = load_image(file_path);
if (!image_pointer) notify("Error: Image not loaded");
if (!image_pointer) notify("'Error: Image not loaded' -E");
ESDWORD[struct_pointer] = image_pointer;
ESDWORD[struct_pointer+4] = DSWORD[image_pointer+4];
ESDWORD[struct_pointer+8] = DSWORD[image_pointer+8];