/programs/cmm/lib/figures.h |
---|
127,7 → 127,7 |
:void GrayScaleImage(dword color_image, w, h) |
{ |
dword i,j, gray,rr,gg,bb; |
dword i,gray,rr,gg,bb; |
for (i = 0; i < w*h*3; i+=3) |
{ |
rr = DSBYTE[i+color_image]; |
/programs/cmm/lib/file_system.h |
---|
235,9 → 235,15 |
:dword abspath(dword relative_path) //GetAbsolutePathFromRelative() |
{ |
char absolute_path[4096]; |
if (ESBYTE[relative_path]=='/') return relative_path; |
if (ESBYTE[relative_path]=='/') |
{ |
strcpy(#absolute_path, relative_path); |
} |
else |
{ |
strcpy(#absolute_path, #program_path); |
absolute_path[strrchr(#absolute_path, '/')] = '\0'; |
strcat(#absolute_path, relative_path); |
} |
return #absolute_path; |
} |
/programs/cmm/lib/kolibri.h |
---|
180,7 → 180,7 |
#define SelfInfo -1 |
dword use_cpu; |
word pos_in_stack,num_slot,rezerv1; |
char name[11]; |
unsigned char name[11]; |
char rezerv2; |
dword adress,use_memory,ID,left,top,width,height; |
word status_slot,rezerv3; |