summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-08 15:31:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-07-08 16:43:41 +0100
commit56f79350d2556d4c8336e768f33d02423b0a9fbb (patch)
tree950798ccd77e24a27ab7c648186836ad02ce8cd0 /vcl
parent3ec79d5a00ff71366c31e7f4b8b6ae9f8d80e820 (diff)
ScrollFlags::NoWindowInvalidate never set
Change-Id: Ib1f0f85fc6c1b68fcebdf94635536a9bdba06d93
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/paint.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index 9a5a1ec2f5c7..a483d8d09fd9 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1577,19 +1577,19 @@ void Window::ImplScroll( const Rectangle& rRect,
aInvalidateRegion.Move( bReMirror ? -nHorzScroll : nHorzScroll, nVertScroll );
bErase = true;
}
- if ( !(nFlags & ScrollFlags::NoWindowInvalidate) )
+
+ Rectangle aDestRect(aRectMirror);
+ aDestRect.Move(bReMirror ? -nHorzScroll : nHorzScroll, nVertScroll);
+ vcl::Region aWinInvalidateRegion(aRectMirror);
+ if (!SupportsDoubleBuffering())
{
- Rectangle aDestRect( aRectMirror );
- aDestRect.Move( bReMirror ? -nHorzScroll : nHorzScroll, nVertScroll );
- vcl::Region aWinInvalidateRegion( aRectMirror );
- if (!SupportsDoubleBuffering())
- // There will be no CopyArea() call below, so invalidate the
- // whole visible area, not only the smaller one that was just
- // scrolled in.
- aWinInvalidateRegion.Exclude(aDestRect);
-
- aInvalidateRegion.Union( aWinInvalidateRegion );
+ // There will be no CopyArea() call below, so invalidate the
+ // whole visible area, not only the smaller one that was just
+ // scrolled in.
+ aWinInvalidateRegion.Exclude(aDestRect);
}
+
+ aInvalidateRegion.Union( aWinInvalidateRegion );
}
Point aPoint( mnOutOffX, mnOutOffY );