Chameleon

Chameleon Commit Details

Date:2010-07-25 03:36:33 (13 years 8 months ago)
Author:Tamás Kosárszky
Commit:234
Parents: 233
Message:Updated loadThemeImage() for handling embedded images.
Changes:
M/branches/zef/i386/boot2/gui.c

File differences

branches/zef/i386/boot2/gui.c
217217
218218
219219
220
221
222
223
220
221
222
223
224
225
224226
225227
226228
......
228230
229231
230232
231
233
232234
233235
234236
#ifdef EMBED_THEME
else if ((e = getEmbeddedImageIndexByName(image)) >= 0)
{
printf("found embedded image: %s, %d\n", image, e);
getc();
/*
if (image_size > 0 && (loadEmbeddedPngImage(image_data, image_size, &width, &height, &imagedata)) == 0)
unsigned char *embed_data;
unsigned int embed_size;
embed_data = embeddedImages[e].pngdata;
embed_size = *embeddedImages[e].length;
if (embed_size > 0 && (loadEmbeddedPngImage(embed_data, embed_size, &width, &height, &imagedata)) == 0)
{
images[i].image->width = width;
images[i].image->height = height;
flipRB(images[i].image);
return 0;
}
*/
return 0;
}

Archive Download the corresponding diff file

Revision: 234