> When I access the screen directly and try to write colorcode directly to
the
> pixels eg.
>
You want to do something like this:
UInt16 sixteenBitRgb = (rgb.r & 0xF8) << 8; // drop the last 3 bits
of R and shift into the upper byte
sixteenBitRgb |= (rgb.b >> 3); // ...drop the last 3 bits of blue
and add it...
sixteenBitRgb |= (rgb.g & 0xFC) << 3; // ...drop the last 2 bits of
green and add it
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/