From f16d82ea8f1d2815faa978a4481c6b3c9c8705f8 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Wed, 3 Jun 2015 20:21:05 +0900 Subject: make it possible to force enable double buffering for all widgets Change-Id: Ia0c8e9d8a22abaa2c06aea2a0f790dc34903ac37 --- vcl/source/window/window.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 72433b09ec4a..8875195c43a3 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -743,7 +743,7 @@ WindowImpl::WindowImpl( WindowType nType ) mbFill = true; mbSecondary = false; mbNonHomogeneous = false; - mbDoubleBuffering = false; // when we are not sure, assume it cannot do double-buffering via RenderContext + mbDoubleBuffering = getenv("VCL_DOUBLEBUFFERING_FORCE_ENABLE"); // when we are not sure, assume it cannot do double-buffering via RenderContext } WindowImpl::~WindowImpl() @@ -3098,7 +3098,6 @@ void Window::Scroll( long nHorzScroll, long nVertScroll, ScrollFlags nFlags ) void Window::Scroll( long nHorzScroll, long nVertScroll, const Rectangle& rRect, ScrollFlags nFlags ) { - OutputDevice *pOutDev = GetOutDev(); Rectangle aRect = pOutDev->ImplLogicToDevicePixel( rRect ); aRect.Intersection( Rectangle( Point( mnOutOffX, mnOutOffY ), Size( mnOutWidth, mnOutHeight ) ) ); -- cgit