Bug 549097: Move the invalidated region when scrolling. r=jrmuizel

This commit is contained in:
Bas Schouten 2010-03-04 20:30:13 +01:00
parent 9d12e48a85
commit 7241a4d222

View File

@ -2394,6 +2394,9 @@ nsWindow::Scroll(const nsIntPoint& aDelta,
nsWindow* w = static_cast<nsWindow*>(configuration.mChild);
w->Invalidate(PR_FALSE);
}
::GetUpdateRgn(mWnd, updateRgn, FALSE);
::OffsetRgn(updateRgn, aDelta.x, aDelta.y);
} else {
#endif
::ScrollWindowEx(mWnd, aDelta.x, aDelta.y, &clip, &clip, updateRgn, NULL, flags);