diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-07 16:35:11 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-08-07 16:35:23 +0200 |
commit | c64a7ce1fcd1e30956a77530d0b76ad493841024 (patch) | |
tree | 723796de700b511614ffeb9c36b12284fa5d3255 /vcl/inc | |
parent | a6c7a0bf105c399d087e2d9f843dbd9b175fdf42 (diff) |
Resolves: tdf#92982 vcl rendercontext: handle buffered paint of vcl::Cursor
Instead of painting on the vcl::Window directly, take a
PaintBufferGuard, and use the vcl::RenderContext of it, that may be
either the vcl::Window or the toplevel frame's buffer.
Trigger the paint of the buffer by informing the guard what area was
painted. In case of direct painting, both the ctor and the dtor of the
guard is a NOP.
This means that finally we can also assert Invert() calls on the output
device, so that direct paint can't happen when double-buffering.
Change-Id: I0322563369dc63b3c49061cbe7c4a911cb13a2e2
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/window.h b/vcl/inc/window.h index 27d5ccc1c1bf..07bc09d78679 100644 --- a/vcl/inc/window.h +++ b/vcl/inc/window.h @@ -398,6 +398,8 @@ public: ~PaintBufferGuard(); /// If this is called, then the dtor will also copy rRectangle to the window from the buffer, before restoring the state. void SetPaintRect(const Rectangle& rRectangle); + /// Returns either the frame's buffer or the window, in case of no buffering. + vcl::RenderContext* GetRenderContext(); }; // helper methods |