Kaydet (Commit) f16d82ea authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

make it possible to force enable double buffering for all widgets

Change-Id: Ia0c8e9d8a22abaa2c06aea2a0f790dc34903ac37
üst 2e4380a0
......@@ -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 ) ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment