diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-03 10:02:44 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-03 18:02:29 +0200 |
commit | 8bb963c3e51725fba649a5db0f5deb8778f1232b (patch) | |
tree | d4455cb91a5d3bf6f52a1f2eb3ca7e0f9a618fce | |
parent | e8f8c32581c9bebec2537095f1e9320e42bb7acb (diff) |
tdf#92982 vcl rendercontext: no buffer is created here
Change-Id: Iebcf9ec9f54102ca13dd36a3d3c2d2b6137dc0f0
-rw-r--r-- | vcl/source/window/paint.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index b707a549aee5..724719dc3df8 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -52,7 +52,7 @@ private: sal_uInt16 m_nPaintFlags; bool m_bPop : 1; bool m_bRestoreCursor : 1; - bool m_bCreatedBuffer : 1; ///< This PaintHelper created the buffer for the double-buffering, and should dispose it when being destructed (if it is still alive by then). + bool m_bStartedBufferedPaint : 1; ///< This PaintHelper started a buffered paint, and should paint it on the screen when being destructed. public: PaintHelper(vcl::Window* pWindow, sal_uInt16 nPaintFlags); void SetPop() @@ -103,7 +103,7 @@ PaintHelper::PaintHelper(vcl::Window *pWindow, sal_uInt16 nPaintFlags) , m_nPaintFlags(nPaintFlags) , m_bPop(false) , m_bRestoreCursor(false) - , m_bCreatedBuffer(false) + , m_bStartedBufferedPaint(false) { } @@ -122,7 +122,7 @@ void PaintHelper::StartBufferedPaint() pFrameData->mpBuffer->Erase(m_aPaintRect); pFrameData->mbInBufferedPaint = true; - m_bCreatedBuffer = true; + m_bStartedBufferedPaint = true; SetupBuffer(); @@ -171,7 +171,7 @@ void PaintHelper::PaintBuffer() { ImplFrameData* pFrameData = m_pWindow->mpWindowImpl->mpFrameData; assert(pFrameData->mbInBufferedPaint); - assert(m_bCreatedBuffer); + assert(m_bStartedBufferedPaint); pFrameData->mpBuffer->mnOutOffX = 0; pFrameData->mpBuffer->mnOutOffY = 0; @@ -524,7 +524,7 @@ PaintHelper::~PaintHelper() // double-buffering: paint in case we created the buffer, the children are // already painted inside - if (m_bCreatedBuffer && pFrameData->mbInBufferedPaint) + if (m_bStartedBufferedPaint && pFrameData->mbInBufferedPaint) { PaintBuffer(); pFrameData->mbInBufferedPaint = false; |