diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-06-03 20:21:05 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-06-03 20:42:27 +0900 |
commit | f16d82ea8f1d2815faa978a4481c6b3c9c8705f8 (patch) | |
tree | b4c6d70be1698b01acb71226b1161d27860e0e39 | |
parent | 2e4380a0773acb72c5ee30e976b8af6ece71396a (diff) |
make it possible to force enable double buffering for all widgets
Change-Id: Ia0c8e9d8a22abaa2c06aea2a0f790dc34903ac37
-rw-r--r-- | vcl/source/window/window.cxx | 3 |
1 files changed, 1 insertions, 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 ) ) ); |