Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9642 → Rev 9643

/programs/cmm/lib/obj/box_lib.h
136,11 → 136,8
ESI.edit_box.size = strlen(ed_text);
}
 
:dword EditBox_Create(dword left, top, width, maxlen, text, flags)
:dword EditBox_Create(dword eb, left, top, width, maxlen, text, flags)
{
dword eb, i;
eb = malloc(sizeof(edit_box));
for (i = 0; i < sizeof(edit_box); i++) ESBYTE[eb + i] = 0;
ESDWORD[eb] = width;
ESDWORD[eb + 4] = left;
ESDWORD[eb + 8] = top;
155,7 → 152,6
ESDWORD[eb + 44] = flags;
ESDWORD[eb + 48] = 0;
ESDWORD[eb + 52] = 0;
return eb;
}
 
struct scroll_bar
/programs/cmm/lib/obj/libimg.h
186,14 → 186,6
}
}
 
// 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);
ESDWORD[size] = ECX;
 
return EAX;
}
 
:dword save_image(dword _image_pointer, _w, _h, _path)
{
dword encoded_data=0;
210,7 → 202,9
EDI = image_ptr;
memmov(EDI.libimg_image.imgsrc, _image_pointer, _w * _h * 3);
 
encoded_data = encode_image(image_ptr, LIBIMG_FORMAT_PNG, 0, #encoded_size);
img_encode stdcall(image_ptr, LIBIMG_FORMAT_PNG, 0);
encoded_data = EAX;
encoded_size = ECX;
 
img_destroy stdcall(image_ptr);