mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
r=mkaply, a=brendan RequiresInvertedMask is unnecessary - we already have the device depth, just check it.
This commit is contained in:
parent
51127bc33e
commit
ef4cbe3e4b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user