I know I know, don't write directly to the screen...
However, I have an app that does just this. It works wonderfully
on every device I've ever tried it on. Now, a user in a distant land
tells me that it causes a fatal error on his Palm IIIc. I don't have
a IIIc, and can't really diagnose it.
The app sets the screen bit depth to 1 before writing to the screen,
but it still dies with a fatal. I don't like when people ask vague
questions without providing code, so here's the non-standard
code that doesn't seem to work on the IIIc:
WinScreenMode(winScreenModeSet, NULL, NULL, 1, NULL);
#define SCREEN_BASE (*(long*)0xfffffa00)
dest = (UInt8 *)(*SCREEN_BASE);
for ( i=0;i<20*160;i++ ) *dest++ = 0;
Should I allocate my own 3200 bytes of memory, and then set the
video buffer myself, as in:
*SCREEN_BASE = my_memory_block;
?
The "Gray matters" paper in the knowledge base makes me
think that this is possible with minimal work. Does anyone here
write directly to the IIIc screen?
Thanks
-- Tim
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/