summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-06-03 20:21:05 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-06-03 20:42:27 +0900
commitf16d82ea8f1d2815faa978a4481c6b3c9c8705f8 (patch)
treeb4c6d70be1698b01acb71226b1161d27860e0e39 /vcl
parent2e4380a0773acb72c5ee30e976b8af6ece71396a (diff)
make it possible to force enable double buffering for all widgets
Change-Id: Ia0c8e9d8a22abaa2c06aea2a0f790dc34903ac37
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx3
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 ) ) );