diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-02-09 20:10:56 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-02-09 20:10:56 +0100 |
commit | f50a4a4ad45f0310463d5ffaa73ddc60e37e3b18 (patch) | |
tree | 6cd2860d2a1e682f9e26c12121c54d16c0abc43f /sw/source/core/view/viewsh.cxx | |
parent | 75c0fc0cb1e403fd424f39e0aac4cb3fab0effc9 (diff) |
Remove static if-tests
Diffstat (limited to 'sw/source/core/view/viewsh.cxx')
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 4fb8cc6b745b..c975001ac00f 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -1296,9 +1296,6 @@ BOOL ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRect ) if(!Imp()->bStopSmooth) { - static bool bDoItOnPixels(true); - if(bDoItOnPixels) - { // start paint on logic base const Rectangle aTargetLogic(Imp()->aSmoothRect.SVRect()); DLPrePaint2(Region(aTargetLogic)); @@ -1316,21 +1313,6 @@ BOOL ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRect ) rTargetDevice.EnableMapMode(false); pVout->EnableMapMode(false); - // copy content - static bool bTestDirectToWindowPaint(false); - if(bTestDirectToWindowPaint) - { - const bool bMapModeWasEnabledWin(GetWin()->IsMapModeEnabled()); - GetWin()->EnableMapMode(false); - - GetWin()->DrawOutDev( - aTargetPixel.TopLeft(), aTargetPixel.GetSize(), // dest - aSourceTopLeft, aTargetPixel.GetSize(), // source - *pVout); - - GetWin()->EnableMapMode(bMapModeWasEnabledWin); - } - rTargetDevice.DrawOutDev( aTargetPixel.TopLeft(), aTargetPixel.GetSize(), // dest aSourceTopLeft, aTargetPixel.GetSize(), // source @@ -1342,34 +1324,6 @@ BOOL ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRect ) // end paint on logoc base DLPostPaint2(true); - } - else - { - Rectangle aRectangle(Imp()->aSmoothRect.SVRect()); - aRectangle.Left() -= aPixSz.Width(); - aRectangle.Right() += aPixSz.Width(); - aRectangle.Top() -= aPixSz.Height(); - aRectangle.Bottom() += aPixSz.Height(); - const Point aUpdateTopLeft(aRectangle.TopLeft()); - const Size aUpdateSize(aRectangle.GetSize()); - - // #i75172# the part getting visible needs to be handled like a repaint. - // For that, start with DLPrePaint2 and the correct Rectangle - DLPrePaint2(Region(aRectangle)); - - static bool bTestDirectToWindowPaint(false); - if(bTestDirectToWindowPaint) - { - GetWin()->DrawOutDev(aUpdateTopLeft, aUpdateSize, aUpdateTopLeft, aUpdateSize, *pVout); - } - - mpTargetPaintWindow->GetTargetOutputDevice().DrawOutDev(aUpdateTopLeft, aUpdateSize, aUpdateTopLeft, aUpdateSize, *pVout); - - // #i75172# Corret repaint end - // Note: This also correcty creates the overlay, thus smooth scroll will - // also be allowed now wth selection (see big IF above) - DLPostPaint2(true); - } } else --nLockPaint; |