[Libreoffice-commits] .: Branch 'feature/gtk3' - vcl/headless
Michael Meeks
michael at kemper.freedesktop.org
Tue Oct 11 09:45:52 PDT 2011
vcl/headless/svpgdi.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9e3d757631b3a82d0b346dd93095a1e737a14092
Author: Michael Meeks <michael.meeks at suse.com>
Date: Tue Oct 11 17:46:05 2011 +0100
gtk3: substantial performance win for editing document headers
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index e44240d..a18826f 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -648,7 +648,8 @@ void SvpSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalInv
// FIXME: handle SAL_INVERT_50 and SAL_INVERT_TRACKFRAME
B2DPolygon aRect = tools::createPolygonFromRect( B2DRectangle( nX, nY, nX+nWidth, nY+nHeight ) );
B2DPolyPolygon aPolyPoly( aRect );
- ensureClip(); // FIXME for ...
+ B2IRange aDestRange( nX, nY, nX + nWidth, nY + nHeight );
+ SvpSalGraphics::ClipUndoHandle aUndo = ensureClipFor( aDestRange ); // FIXME for ...
m_aDevice->fillPolyPolygon( aPolyPoly, basebmp::Color( 0xffffff ), DrawMode_XOR, m_aClipMap );
dbgOut( m_aDevice );
}
More information about the Libreoffice-commits
mailing list