De IPodBrasil Ir para: navega§£o pesquisa First of all, if you haven't built a working iPod SDL , do so before reading this page. With SDL available for the iPod, some applications should be much easier to port. However, the iPod SDL implementation has a few idiosyncracies that will be detailed below.
Conteºdo 2-bit Color The Mouse Events ... The Log
Setting the Video Mode bpp as . (Not 2!) On an iPod photo, nano, or video, you would correctly set bpp to 16. In order to set the correct mode for your iPod, use a function like this one. You can now check to see what format you got.
2-bit Color Since the iPod standard only supports 4 colors (white, light grey, dark grey, black), and SDL supports surfaces with, at minimum, a 256-color palette, we had to cheat a bit. The iPod video driver sets an unchangeable palette of constant repetitions of these four colors for the screen. (Yes, is white.) To convert other surfaces to this palette, use a function like this one. Note that "light gray" is not exactly 66% RGB, nor is "dark gray" exactly 33%. (That would be 170 and 85 instead of 160 and 80.)
The Mouse SDL insists on having a mouse, even if it doesn't make sense. Unless you hide the cursor, it'll show up in the upper left corner of your screen. So be sure to execute