Subversion Repositories Kolibri OS

Rev

Rev 7977 | Rev 8020 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7977 Rev 7995
Line 15... Line 15...
15
 
15
 
16
#include "../lib/obj/libimg.h"
16
#include "../lib/obj/libimg.h"
Line 17... Line 17...
17
#include "../lib/obj/box_lib.h"
17
#include "../lib/obj/box_lib.h"
18
 
-
 
Line 19... Line 18...
19
#include "../lib/patterns/rgb.h"
18
 
Line 20... Line 19...
20
#include "../lib/patterns/libimg_load_skin.h"
19
#include "../lib/patterns/rgb.h"
21
 
20
 
Line 194... Line 193...
194
	if (!param[0]) {
193
	if (!param[0]) {
195
		image.create(32, 32);
194
		image.create(32, 32);
196
	}
195
	}
197
	else
196
	else
198
	{
197
	{
199
		open_image.load_as24b(#param);
198
		open_image.load(#param);
-
 
199
		open_image.convert_into(IMAGE_BPP24);
Line 200... Line 200...
200
 
200
 
201
		if (open_image.w*open_image.h>MAX_CELL_SIZE*MAX_CELL_SIZE) {
201
		if (open_image.w*open_image.h>MAX_CELL_SIZE*MAX_CELL_SIZE) {
202
			notify(T_ERROR_IMA_ICONEDIT);
202
			notify(T_ERROR_IMA_ICONEDIT);
203
			ExitProcess();
203
			ExitProcess();