Kaydet (Commit) 46e7a44f authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Andras Timar

make it possible to force enable double buffering for all widgets

Change-Id: Ia0c8e9d8a22abaa2c06aea2a0f790dc34903ac37
üst 6f66d988
...@@ -755,7 +755,7 @@ WindowImpl::WindowImpl( WindowType nType ) ...@@ -755,7 +755,7 @@ WindowImpl::WindowImpl( WindowType nType )
mbFill = true; mbFill = true;
mbSecondary = false; mbSecondary = false;
mbNonHomogeneous = 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() WindowImpl::~WindowImpl()
...@@ -3112,7 +3112,6 @@ void Window::Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags ) ...@@ -3112,7 +3112,6 @@ void Window::Scroll( long nHorzScroll, long nVertScroll, sal_uInt16 nFlags )
void Window::Scroll( long nHorzScroll, long nVertScroll, void Window::Scroll( long nHorzScroll, long nVertScroll,
const Rectangle& rRect, sal_uInt16 nFlags ) const Rectangle& rRect, sal_uInt16 nFlags )
{ {
OutputDevice *pOutDev = GetOutDev(); OutputDevice *pOutDev = GetOutDev();
Rectangle aRect = pOutDev->ImplLogicToDevicePixel( rRect ); Rectangle aRect = pOutDev->ImplLogicToDevicePixel( rRect );
aRect.Intersection( Rectangle( Point( mnOutOffX, mnOutOffY ), Size( mnOutWidth, mnOutHeight ) ) ); 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