We’re starting this port in the next days. We plan to do a simple port at first
(just calling Palm OS routines), and after, do the deeper port, including the
graphic primitives for direct screen access.
Our intention is to provide the driver to the community and add it to SDL. Our
second intention is to port SuperWaba to run on top of SDL. This last one is
already done, but since SDL API lacks the specifities of a PDA, we still have
to do some magics around.
SuperWaba supports, since 2002, all possible screen depths available for Palm
OS. This means:
2bpp grayscale mode: Palm Professional, Palm III, Palm V - very old devices
4bpp grayscale mode: Palm Vx, Zire 21, Treo 300, and many others
8bpp palettized-color mode: Palm IIIc, M130, M505, some others
The routines for these 3 modes are done in Assembly 68000, and are part of
SuperWaba’s source code (i wrote it in 2002).
The 16bpp hicolor mode uses the native Palm OS calls, present in most Tungsten
and other models.
I got the excellent article that Stephane Marchesin wrote about “Porting SDL”,
and it will help us start the port.
But, there’s already a first glych: SDL does NOT support less than 8bpp screens
(see sourceFormat->BytesPerPixel). So, how to define 4bpp screens? (we’re
willing to drop the support for 2bpp devices because they almost disappeared).
If anyone else wants to help on this port, lemme know and i may provide access
to our private repository.
ps: more on superwaba at www.superwaba.org /com/com.br/net