diff options
Diffstat (limited to 'vcl/source/window/window.cxx')
-rw-r--r-- | vcl/source/window/window.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 1e6a339caf2c..49716ed8fa37 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -446,6 +446,16 @@ void Window::CopyAreaFinal( SalTwoRect& aPosAry, sal_uInt32 nFlags ) OutputDevice::CopyAreaFinal(aPosAry, nFlags); } +Rectangle& Window::GetPaintArea( Rectangle& rDstRect ) +{ + const Region aPaintRgn( GetPaintRegion() ); + + if( !aPaintRgn.IsNull() ) + rDstRect.Intersection( LogicToPixel( aPaintRgn.GetBoundRect() ) ); + + return rDstRect; +} + void Window::ImplReleaseGraphics( bool bRelease ) { DBG_TESTSOLARMUTEX(); |