r=mkaply, a=brendan
RequiresInvertedMask is unnecessary - we already have the device depth, just check it.
This commit is contained in:
mkaply%us.ibm.com 2000-07-24 22:31:26 +00:00
parent 51127bc33e
commit ef4cbe3e4b

View File

@ -266,10 +266,7 @@ nsresult nsImageOS2::Draw( nsIRenderingContext &aContext,
#define ROP_NOTSRCAND 0x22 // NOT(SRC) AND DST
PRBool aBool;
surf->RequiresInvertedMask( &aBool);
long lRop = aBool ? ROP_NOTSRCAND : ROP_SRCAND;
long lRop = (mDeviceDepth >= 8) ? ROP_NOTSRCAND : ROP_SRCAND;
// Apply mask to target, clear pels we will fill in from the image
DrawBitmap( surf->mPS, 4, aptl, lRop, PR_TRUE);