diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-05-21 12:01:36 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-05-29 20:16:49 +0200 |
commit | 75cc885f082aec0e3654e1dd6a0580a479550cf8 (patch) | |
tree | aa9d91711e06bf3319c6762ba7d5587d54cb2848 /vcl | |
parent | 48495a7135d74dbf7ef19f868d6b76a725f36a96 (diff) |
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
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/paint.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 374e5def03a4..35317103bc28 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -192,9 +192,9 @@ void PaintHelper::DoPaint(const vcl::Region* pRegion) // but we are in the middle of double-buffered paint, we might be // losing information 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 m_pWindow->PushPaintHelper(this, *m_pWindow); |