This image's original size is 128x256 16bit, and is converted with grit using -gb -gB16 -aw256 -ah256.
I just copy the image to the dma like this:
Code: Select all
dmaCopy(bannerBitmap, (u16*)BG_BMP_RAM(0), bannerBitmapLen);
Now I checked if it would work when I removed the alpha in the image:
Code: Select all
u16* video_main = (u16*)BG_BMP_RAM(0);
int i;
for(i=0; i<256*256; i++) {
*video_main++ |= (1 << 15);
}
So what would be the normal way to prevent the image to be invisible because of some alpha values in the bmap?