Hello,
I used to use the code to draw the bitmap image files:
|
Source code
|
1
2
3
4
5
6
|
pData = SWITCH__aBmpData[Index];
GUI_SetClipRect(&Rect);
GUI_BMP_EnableAlpha();
GUI_BMP_Draw(pData, Rect.x0, Rect.y0);
GUI_BMP_DisableAlpha();
GUI_SetClipRect(NULL);
|
I tested with 32bit images, all's okay;
but, when I tested with 8bit iamges, it failed.
The attached are the files I tested with.
The 8bit images are created from 32bit ones using GIMP.
The attached file "SWITCH_Image.c" is the image data created from the image files.
Am I doing something wrong?
Any idea is welcome!
Image_32bit.zip
Image_8bit.zip
SWITCH_Image.zip