Kaydet (Commit) 75cc885f authored tarafından Jan Holesovsky's avatar Jan Holesovsky

rendercontext: Correct output of the type that is not double-buffered.

And also don't attempt to draw the non-double-buffered windows via double
buffering.

Change-Id: Ic7afb976dfbe005e1aeff2d726360f259f87f4bc
üst 48495a71
...@@ -192,9 +192,9 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion) ...@@ -192,9 +192,9 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion)
// but we are in the middle of double-buffered paint, we might be // but we are in the middle of double-buffered paint, we might be
// losing information // losing information
if (m_pBuffer && !m_pWindow->SupportsDoubleBuffering()) if (m_pBuffer && !m_pWindow->SupportsDoubleBuffering())
SAL_WARN("vcl.doublebuffering", "non-double buffered window in the double-buffered hierarchy, painting directly: " << typeid(m_pWindow).name()); SAL_WARN("vcl.doublebuffering", "non-double buffered window in the double-buffered hierarchy, painting directly: " << typeid(*m_pWindow.get()).name());
if (m_pBuffer) if (m_pBuffer && m_pWindow->SupportsDoubleBuffering())
{ {
// double-buffering // double-buffering
m_pWindow->PushPaintHelper(this, *m_pWindow); m_pWindow->PushPaintHelper(this, *m_pWindow);
......
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