summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-12-03 16:21:36 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Sun.COM>2010-12-03 16:21:36 +0100
commitead04f8f0b7f51bf281ce41d8d590df0ca14af38 (patch)
treec3a0d177f6b6014e5ebacbab3e7f5e041446281a /canvas
parentbaddf3f156c3c557c3615aec46b1f95df292a0fd (diff)
vcl118: #i115905# improved clip region interface on SAL layer (part 1, windows implementation)
Diffstat (limited to 'canvas')
-rwxr-xr-x[-rw-r--r--]canvas/source/vcl/spritehelper.cxx17
1 files changed, 2 insertions, 15 deletions
diff --git a/canvas/source/vcl/spritehelper.cxx b/canvas/source/vcl/spritehelper.cxx
index a09905e006a8..40bf7c5dc6cd 100644..100755
--- a/canvas/source/vcl/spritehelper.cxx
+++ b/canvas/source/vcl/spritehelper.cxx
@@ -341,21 +341,8 @@ namespace vclcanvas
else
#endif
{
- // redraw is direcly on the front buffer,
- // or using alpha blending - cannot use
- // XOR, thus, employing the still somewhat
- // speedier triangle clip method
- ::basegfx::B2DPolygon aTriangulatedClip(::basegfx::triangulator::triangulate(aClipPoly));
-
- // restrict the clipping area to the visible portion of the output device.
- Size aSize(rTargetSurface.GetOutputSizePixel());
- ::basegfx::B2DRange aOutputRect(::basegfx::B2DPoint(0,0),::basegfx::B2DPoint(aSize.Width(),aSize.Height()));
- ::basegfx::B2DPolygon aClippedClip(::basegfx::tools::clipTriangleListOnRange(aTriangulatedClip,aOutputRect));
-
- // #i76339#
- const Polygon aPoly(aClippedClip);
- const PolyPolygon aPolyPoly(aPoly);
- rTargetSurface.SetTriangleClipRegion(aPolyPoly);
+ Region aClipRegion( aClipPoly );
+ rTargetSurface.SetClipRegion( aClipRegion );
}
}
}