Kaydet (Commit) 315d82d7 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Remove nasty xor hack for non-Mac vclcanvas

This nowadays really is a pessimization.
üst 50309b95
......@@ -621,7 +621,6 @@ namespace vclcanvas
}
}
else
#if defined(QUARTZ) // TODO: other ports should avoid the XOR-trick too (implementation vs. interface!)
{
const Region aPolyClipRegion( rPoly );
......@@ -651,57 +650,6 @@ namespace vclcanvas
p2ndOutDev->Pop();
}
}
#else // TODO: remove once doing the XOR-trick in the canvas-layer becomes redundant
{
// output gradient the hard way: XORing out the polygon
rOutDev.Push( PUSH_RASTEROP );
rOutDev.SetRasterOp( ROP_XOR );
doGradientFill( rOutDev,
rValues,
rColors,
aTotalTransform,
aPolygonDeviceRectOrig,
nStepCount,
true );
rOutDev.SetFillColor( COL_BLACK );
rOutDev.SetRasterOp( ROP_0 );
rOutDev.DrawPolyPolygon( rPoly );
rOutDev.SetRasterOp( ROP_XOR );
doGradientFill( rOutDev,
rValues,
rColors,
aTotalTransform,
aPolygonDeviceRectOrig,
nStepCount,
true );
rOutDev.Pop();
if( p2ndOutDev )
{
p2ndOutDev->Push( PUSH_RASTEROP );
p2ndOutDev->SetRasterOp( ROP_XOR );
doGradientFill( *p2ndOutDev,
rValues,
rColors,
aTotalTransform,
aPolygonDeviceRectOrig,
nStepCount,
true );
p2ndOutDev->SetFillColor( COL_BLACK );
p2ndOutDev->SetRasterOp( ROP_0 );
p2ndOutDev->DrawPolyPolygon( rPoly );
p2ndOutDev->SetRasterOp( ROP_XOR );
doGradientFill( *p2ndOutDev,
rValues,
rColors,
aTotalTransform,
aPolygonDeviceRectOrig,
nStepCount,
true );
p2ndOutDev->Pop();
}
}
#endif // complex-clipping vs. XOR-trick
#if OSL_DEBUG_LEVEL > 3
// extra-verbosity
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment