This is documented behavior; read the entries on WinDrawBitmap() and
WinDrawOperation in the PalmOS Programmer's API reference.
The easiest solution is to write a little convenience function, like this --
void DrawMonoBitmap(BitmapType *bm, Coord x, Coord y) {
RGBColorType savedBG, savedFG);
RGBColorType black, white;
black.r = black.g = black.b = 0;
white.r = white.g = white.b = 0;
WinSetBackColorRGB(&white, &savedBG);
WinSetForeColorRGB(&black, &savedFG);
WinDrawBitmap(bm, x, y);
WinSetBackColorRGB(&savedBG, NULL);
WinSetForeColorRGB(&savedFG, NULL);
}
Hope this helps,
- Thomas
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/