Kaydet (Commit) 6ee22424 authored tarafından Miklos Vajna's avatar Miklos Vajna Kaydeden (comit) Andras Timar

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
(cherry picked from commit af9d02a2)
üst f3dcfc94
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment