I'm trying to use WinPaintChars() to draw text with a transparent background
(ie, only paint the text pixels, without getting a rectangle of the background
color around the characters). This works perfectly on 3.5 devices, but in
testing
it on POSE with any of the 4.0 roms, I get a white background around the text,
instead of the desired effect.
Here's my code:
// erase the text pixels
WinSetTextColor( whiteIndex );
WinSetBackColor( blackIndex );
WinSetDrawMode( winErase );
WinPaintChars( txt, len, x, y );
// logical OR the text pixels with the desired color
WinSetTextColor( textColor );
WinSetBackColor( whiteIndex );
WinSetDrawMode( winOverlay );
WinPaintChars( txt, len, x, y );
Where whiteIndex, blackIndex, textColor are all indexes into the current
palette
for the appropriate colors.
Is this a bug in 4.0? Or am I missing something?
Thanks,
--
Bill Kirby
Electron Hut
www.electronhut.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/