diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-30 10:15:23 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-30 11:08:53 +0200 |
commit | af9d02a24bc61c9a531157ed6a49b25c47668277 (patch) | |
tree | 5e046027ba1cb062e13c77294d1eff78db1b0079 | |
parent | 67d0aee921ae7c10bfd823097db73d7f125faa3a (diff) |
SwViewShell::DLPrePaint2: paint to mpOut if isOutputToWindow()
With this, most of the SwEditWin is painted to the virtual device in
case of double buffering, not directly to the screen (avoids
flickering).
Change-Id: If93aa082daaec6b0e2c417ebc7367e5ab601aa2c
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index a8353735b014..33e85d1a1c8a 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -188,8 +188,9 @@ void SwViewShell::DLPrePaint2(const vcl::Region& rRegion) if ( !HasDrawView() ) MakeDrawView(); - // Prefer window; if tot available, get mpOut (e.g. printer) - mpPrePostOutDev = (GetWin() && !isTiledRendering())? GetWin(): GetOut(); + // Prefer window; if not available, get mpOut (e.g. printer) + const bool bWindow = GetWin() && !isTiledRendering() && !isOutputToWindow(); + mpPrePostOutDev = bWindow ? GetWin(): GetOut(); // #i74769# use SdrPaintWindow now direct mpTargetPaintWindow = Imp()->GetDrawView()->BeginDrawLayers(mpPrePostOutDev, rRegion); |