I want to draw a bitmap, of depth one, onto the screen of a Color device such
that the set bits of the bit map are drawn in a specified color and the clear
bits leave the screen untouched.
The following code does not work - The bit map is drawn OK but the clear bits
of the bit map corrupt the screen.
Am I missing something or is there a better way to do this?.
(I am using bitmaps created with Constructor version 1.2b4 )

static void TestOverlayBitMap( IndexedColorType colIndex, 
                    BitmapType *bitmapP, UInt16 x, UInt16 y)
{
   WinPushDrawState();
   WinSetDrawMode ( winOverlay);
   WinSetForeColor (colIndex);
   WinPaintBitmap(bitmapP, x, y );
   WinPopDrawState();
}

Richard Lang  ChessGenius





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to