diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-03-06 23:09:58 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-03-16 17:02:21 +0100 |
commit | 315d82d741c37d1b77f5687b1bdc48a37fb9f29f (patch) | |
tree | 65391898652631adaf7b90a40ff97465c6595ca7 /canvas/source | |
parent | 50309b9574c43de93a05576904813881eb7bc898 (diff) |
Remove nasty xor hack for non-Mac vclcanvas
This nowadays really is a pessimization.
Diffstat (limited to 'canvas/source')
-rw-r--r-- | canvas/source/vcl/canvashelper_texturefill.cxx | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx index 325d2b6271bd..8deaaa8b59b0 100644 --- a/canvas/source/vcl/canvashelper_texturefill.cxx +++ b/canvas/source/vcl/canvashelper_texturefill.cxx @@ -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 |