summaryrefslogtreecommitdiff
path: root/vcl/inc/window.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-08-11 17:39:58 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-08-11 19:07:40 +0200
commit7305941b150097123eab664f9ec9e5f3909a5c52 (patch)
tree7d06bd766e044c9856e94237d9646af75113de02 /vcl/inc/window.h
parent94fb1a389c3be0fd5570421baa596aeb79dc5528 (diff)
tdf#93364 vcl rendercontext: fix area that is painted in PaintBuffer()
Usually the topmost window of a paint hierarchy has a paint rectangle that covers the paint rectangle of all its children, but this is not necessarly true in every case. One example is the cursor travelling described in the bug report, where the topmost DockingAreaWindow only paints a few buttons on the toolbar, and then even if children are painted correctly to the frame-level persistent buffer, only the DockingAreaWindow part of the buffer is copied to the screen. Fix this by building an union rectangle that covers all areas in a buffered paint run, and then paint that rectangle from the buffer, not just the paint rectangle of the topmost parent. Change-Id: Ib0b30413d83c4b3fdec27fa7ddad16c21fd094b6
Diffstat (limited to 'vcl/inc/window.h')
-rw-r--r--vcl/inc/window.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/window.h b/vcl/inc/window.h
index 07bc09d78679..8b5cf9cc7f39 100644
--- a/vcl/inc/window.h
+++ b/vcl/inc/window.h
@@ -181,6 +181,7 @@ struct ImplFrameData
bool mbInternalDragGestureRecognizer;
VclPtr<VirtualDevice> mpBuffer; ///< Buffer for the double-buffering
bool mbInBufferedPaint; ///< PaintHelper is in the process of painting into this buffer.
+ Rectangle maBufferedRect; ///< Rectangle in the buffer that has to be painted to the screen.
};
struct ImplAccessibleInfos