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-29 20:16:49 +0200
commit75cc885f082aec0e3654e1dd6a0580a479550cf8 (patch)
treeaa9d91711e06bf3319c6762ba7d5587d54cb2848 /vcl
parent48495a7135d74dbf7ef19f868d6b76a725f36a96 (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);