Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7245 → Rev 7246

/programs/cmm/app_installer/installer.c
File deleted
\ No newline at end of file
/programs/cmm/app_installer/build_en.bat
File deleted
\ No newline at end of file
/programs/cmm/app_installer/generate_file_listing.bat
File deleted
/programs/cmm/easyshot/easyshot.c
37,6 → 37,7
/* === DATA === */
 
proc_info Form;
proc_info Settings;
 
dword screenshot;
int screenshot_length;
59,7 → 60,6
more_less_box delay = { 1, 0, 64, T_DELAY };
checkbox minimize = { T_MINIMIZE, true };
 
proc_info Settings;
 
opendialog open_folder_dialog =
{
119,11 → 119,9
break;
case evReDraw:
system.color.get();
DefineAndDrawWindow(screen.width/4, screen.height-100/3, 270,
skin_height + 27+PD+PD, 0x34, system.color.work, T_WTITLE,0);
GetProcessInfo(#Form, SelfInfo);
if (Form.status_window>2) break;
DrawMainContent();
}
}
/programs/cmm/lib/dll.h
16,17 → 16,11
 
char a_libdir[43] = "/sys/lib/\0";
 
dword GLOBAL_FUNC_LIB = 0;
dword G_FUNC_LOAD = 0;
dword G_FUNC_GET = 0;
dword PATH_LIBRARY_LOADING = "/rd/1/lib/library.obj";
 
:inline void error_init(dword text)
{
dword TEXT_ERROR = malloc(1024);
dword TEXT_ERROR[1024];
sprintf(TEXT_ERROR, "%s `%s`' -E",_TEXT_ERROR_ADD,text);
notify(TEXT_ERROR);
free(TEXT_ERROR);
}
 
// stdcall with 1 parameter
254,42 → 248,5
return true;
}
 
:struct OBJECT
{
void load(dword dllname);
dword get(dword fname);
} library;
 
:void OBJECT::load(dword dllname)
{
dword tmp;
IF(!GLOBAL_FUNC_LIB)
{
$mov eax, 68
$mov ebx, 19
ECX=#PATH_LIBRARY_LOADING;
$int 0x40
tmp = EAX;
GLOBAL_FUNC_LIB = tmp;
tmp+=4;
G_FUNC_LOAD = DSDWORD[tmp];
tmp+=8;
G_FUNC_GET = DSDWORD[tmp];
}
G_FUNC_LOAD stdcall(dllname);
}
 
:dword OBJECT::get(dword fname)
{
dword tmp=fname;
G_FUNC_GET stdcall(tmp);
return EAX;
}
 
/*
#define INIT_(name) byte init_#name(){object.load(name);
#define IMPORT(name) name = object.get(name);
#define _INIT return 1;}
*/
 
#endif
/programs/cmm/lib/gui.h
30,7 → 30,6
 
:void DrawRectangle(dword x,y,w,h,color1)
{
if (w<=0) || (h<=0) return;
DrawBar(x,y,w,1,color1);
DrawBar(x,y+h,w,1,color1);
DrawBar(x,y,1,h,color1);
39,7 → 38,6
 
:void DrawWideRectangle(dword x,y,w,h,boder,color1)
{
if (w<=0) || (h<=0) return;
DrawBar(x, y, w, boder, color1);
DrawBar(x, y+h-boder, w, boder, color1);
DrawBar(x, y+boder, boder, h-boder-boder, color1);
48,7 → 46,6
 
:void DrawRectangle3D(dword x,y,w,h,color1,color2)
{
if (w<=0) || (h<=0) return;
DrawBar(x,y,w+1,1,color1);
DrawBar(x,y+1,1,h-1,color1);
DrawBar(x+w,y+1,1,h,color2);