Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5408 leency 1
struct libimg_image {
2
	dword image, w, h;
3
};
4
 
5
int Libimg_LoadImage(dword struct_pointer, file_path)
6
{
7
	int image_pointer;
8
	image_pointer = load_image(file_path);
9
	if (!image_pointer) notify("Error: Skin not loaded");
10
	ESDWORD[struct_pointer] = image_pointer;
11
	ESDWORD[struct_pointer+4] = DSWORD[image_pointer+4];
12
	ESDWORD[struct_pointer+8] = DSWORD[image_pointer+8];
13
}