>   UInt16 sixteenBitRgb  = (rgb.r & 0xF8) << 8;
>          sixteenBitRgb |= (rgb.b >> 3);
>          sixteenBitRgb |= (rgb.g & 0xFC) << 3;

  *p++ = (((uint16)(_r & 0xF8) << 8) |   // 1111100000000000
          ((uint16)(_g & 0xFC) << 3) |   // 0000011111100000
          ((uint16)(_b & 0xF8) >> 3));   // 0000000000011111   5-6-5 display

looks like your endianess is the issue ;)

---
Aaron Ardiri
PalmOS Certified Developer
[EMAIL PROTECTED]
http://www.mobilewizardry.com/members/aaron_ardiri.php


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to