summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-05-21 12:01:36 +0200
committerJan Holesovsky <kendy@collabora.com>2015-05-22 15:08:42 +0200
commit1026eec23e34fb9a2197af0f6e1235910fb582d4 (patch)
tree019d56d763bef9a68208bbe5bf3b20d98b2e7851 /vcl
parent562b7b06b81c436b1e26f71dbd639b4e456999a6 (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.cxx4
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);