summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-08-03 10:58:58 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-08-03 18:02:29 +0200
commit27f6b2c038f5daf16a7fff4adf478b603eb08399 (patch)
tree67afb29be1261b9a38becbb1b311807bc33d78a0
parent8bb963c3e51725fba649a5db0f5deb8778f1232b (diff)
tdf#92982 vcl rendercontext: no need to call SetupBuffer() twice
No need to call it in PaintHelper::StartBufferedPaint(), which would happen only for the root of the paint hierarchy. It's enough to do it in PaintHelper::DoPaint(), which happens for each widget. Change-Id: Iaf3306ef746bedbe64be36c4efeae73afd75db2a
-rw-r--r--vcl/source/window/paint.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 724719dc3df8..b4965e512903 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -124,8 +124,6 @@ void PaintHelper::StartBufferedPaint()
pFrameData->mbInBufferedPaint = true;
m_bStartedBufferedPaint = true;
- SetupBuffer();
-
// Remember what was the map mode of m_aPaintRect.
m_aPaintRectMapMode = m_pWindow->GetMapMode();