diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-11-30 16:15:03 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-12-04 01:57:00 +0000 |
commit | 2aaa42e0856ca942ce4410be7fb51306a784ac65 (patch) | |
tree | 5301908516c67c22815c561fadeece570f085430 | |
parent | vcl: Don't flush if we're mid-rendering - to avoid partial contents. (diff) | |
download | core-2aaa42e0856ca942ce4410be7fb51306a784ac65.tar.gz core-2aaa42e0856ca942ce4410be7fb51306a784ac65.zip |
Avoid excessive flushing by hold paint guard over window update.
Change-Id: Id267e3e9245e987d98fe141d1356a7fc29d419a4
-rw-r--r-- | vcl/source/window/paint.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 6402639c6f47..34462e6dbaf6 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -1290,6 +1290,8 @@ void Window::Update() if ( !mpWindowImpl->mbReallyVisible ) return; + OutputDevice::PaintScope aScope (this); + bool bFlush = false; if ( mpWindowImpl->mpFrameWindow->mpWindowImpl->mbPaintFrame ) { |