diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2009-04-02 14:21:17 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2009-04-02 14:21:17 +0000 |
commit | 17b430be6f988a7c4eedd1ee5c433b49815eaccd (patch) | |
tree | b70fc4484371cc4bbe32e06c98743a7bc576f5a7 /vcl/unx/source | |
parent | 06b431efe124c62f416da758fd8678e07e77c2f7 (diff) |
CWS-TOOLING: integrate CWS ooo31gsl7_DEV300
2009-03-25 16:03:41 +0100 hdu r270032 : #i100522# workaround for PDF-export problem with 180-rotated text
2009-03-25 13:42:11 +0100 hdu r270022 : #i100406# fix xrender resource leak in polygon drawing
Diffstat (limited to 'vcl/unx/source')
-rw-r--r-- | vcl/unx/source/gdi/salgdi.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/source/gdi/salgdi.cxx b/vcl/unx/source/gdi/salgdi.cxx index 1d61dbe214a2..6d7812828a10 100644 --- a/vcl/unx/source/gdi/salgdi.cxx +++ b/vcl/unx/source/gdi/salgdi.cxx @@ -1385,6 +1385,7 @@ bool X11SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly rRenderPeer.FillRectangle( PictOpSrc, rEntry.m_aPicture, &aRenderColor, 0, 0, 1, 1 ); // notify xrender of target drawable + // TODO: cache the matching xrender picture in the X11SalGraphics Picture aDst = rRenderPeer.CreatePicture( hDrawable_, pVisualFormat, 0, NULL ); // set clipping @@ -1396,6 +1397,10 @@ bool X11SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly rRenderPeer.CompositeTrapezoids( PictOpOver, rEntry.m_aPicture, aDst, pMaskFormat, 0, 0, &aTrapVector[0], aTrapVector.size() ); + // release xrender-counterpart of target drawable + // TODO: use scoped xrender picture + rRenderPeer.FreePicture( aDst ); + return TRUE; } |