Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9593 → Rev 9594

/programs/cmm/lib/kolibri.h
553,7 → 553,6
 
:void DrawBar(dword x,y,w,h,color)
{
//if (h<=0) || (h>60000) || (w<=0) || (w>60000) return; //bad boy :)
EAX = 13;
EBX = x<<16+w;
ECX = y<<16+h;
/programs/cmm/lib/obj/libimg.h
184,11 → 184,6
}
}
 
:dword create_image(dword type, dword width, dword height) {
img_create stdcall(width, height, type);
return EAX;
}
 
// size - output parameter, error code / the size of encoded data
:dword encode_image(dword image_ptr, dword options, dword specific_options, dword* size) {
img_encode stdcall(image_ptr, options, specific_options);
203,7 → 198,8
dword encoded_size=0;
dword image_ptr = 0;
 
image_ptr = create_image(IMAGE_BPP24, _w, _h);
img_create stdcall(_w, _h, IMAGE_BPP24);
image_ptr = EAX;
 
if (!image_ptr) {
return "Error creating image!";
/programs/cmm/lib/patterns/toolbar_button.h
1,3 → 1,4
//<= imgsrc, imgsize, color_old_1, color_new_1, color_old_2, color_new_2
inline fastcall replace_2cols(EDI, EDX, ESI, ECX, EBX, EAX)
{
EDX += EDI; //imgsrc + imgsize;