From 9a809eedf7327f925cd6be56545b8ed300ef28f4 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 23 Jun 2015 10:29:48 +0200 Subject: rendercontext: Mass fix of using the wrong size. In the paints, we must use the size of the Window for the computations, not of the RenderContext - the RenderContext can be much bigger than the Window in the double-buffering case. Fixes for example the list boxes, and many others. Change-Id: I4c7607569f88b2d097587140858d0862e54b5ea6 Reviewed-on: https://gerrit.libreoffice.org/16421 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos --- desktop/source/deployment/gui/dp_gui_extlistbox.cxx | 2 +- desktop/source/splash/splash.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx index 3989e2d8ae3a..f98de990f11b 100644 --- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx +++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx @@ -758,7 +758,7 @@ void ExtensionBox_Impl::Paint(vcl::RenderContext& rRenderContext, const Rectangl RecalcAll(); Point aStart( 0, -m_nTopIndex ); - Size aSize(rRenderContext.GetOutputSizePixel()); + Size aSize(GetOutputSizePixel()); if ( m_bHasScrollBar ) aSize.Width() -= m_pScrollBar->GetSizePixel().Width(); diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index d0378ad58454..48d2933d5e94 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -669,7 +669,7 @@ void SplashScreenWindow::Paint(vcl::RenderContext& rRenderContext, const Rectang _vdev->SetTextColor(pSpl->_cProgressTextColor); _vdev->DrawText(Point(pSpl->_tlx, pSpl->_textBaseline), pSpl->_sProgressText); } - rRenderContext.DrawOutDev(Point(), rRenderContext.GetOutputSizePixel(), Point(), _vdev->GetOutputSizePixel(), *_vdev.get()); + rRenderContext.DrawOutDev(Point(), GetOutputSizePixel(), Point(), _vdev->GetOutputSizePixel(), *_vdev.get()); } -- cgit