summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2011-10-11 17:46:05 +0100
committerMichael Meeks <michael.meeks@suse.com>2011-10-25 13:41:55 +0100
commit81d1ba27558003fa562d3d0e362318749bb730c9 (patch)
tree1c61e6ed1ddcc691757f497c6a6f1f39fbc6ab59 /vcl
parent8077f57f39d4d679dc387669dc783f17fc40000c (diff)
gtk3: substantial performance win for editing document headers
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpgdi.cxx3
-rw-r--r--vcl/unx/gtk/app/gtkdata.cxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index e44240de07c4..a18826f3f233 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 );
}
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index 9508cbc03991..54bcb7adcf45 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -219,7 +219,8 @@ void GtkSalDisplay::monitorsChanged( GdkScreen* pScreen )
if (pScreen)
m_aFrames.front()->CallCallback( SALEVENT_DISPLAYCHANGED, 0 );
#else
-#warning get this right
+ (void)pScreen;
+#warning FIXME: implement monitorsChanged for gtk3
#endif
}
@@ -756,7 +757,6 @@ void GtkData::Init()
GdkScreen *pScreen = gdk_display_get_screen( pGdkDisp, n );
if( pScreen )
{
- GtkDisplay *pDisplay = GetGtkDisplay();
pDisplay->screenSizeChanged( pScreen );
pDisplay->monitorsChanged( pScreen );
g_signal_connect( G_OBJECT(pScreen), "size-changed",