Karrakunga said:
Not sure if this is the same question but I've been curious about this actually. Whether the gp2x supports 32bit colour or not, or if I have to stick with 16bit.
Actually hardware supports 4 formats:
4bpp with palette (16 colors)
8bpp with palette (256 colors)
RGB565
RGB24
It's only the high level libs use mostly RGB565 for some reason.
That interesting to know. I was having a small problem when blitting and it ended up being a problem with the order I was getting the colour values from the image. Getting them in the order RGBA worked fine in windows, but (using alpha blending) produced a coloured background where it should have been transparent.
I've since found out that the order to make it work is to store the values from the image in RABG, which seems very odd to me. The code is exactly the same as the windows build so I can't be shifting along a bit anywhere. But they are using different SDL libraries.