[BeOS]Bug 315542, shifting native paintregion in scroll, p=sergei_d, r=thesuckiestemail@yahoo.se, BeOS-only, no need for sr

This commit is contained in:
sergei_d%fi.tartu.ee 2005-11-10 17:41:14 +00:00
Родитель 2656d26301
Коммит a30b8496e5
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1830,6 +1830,11 @@ NS_METHOD nsWindow::Scroll(PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)
childWidget->Move(bounds.x, bounds.y);
}
}
// Native region needs shifting too.
mView->paintregion.OffsetBy(aDx, aDy);
// Adding native paintregion to calculated one.
// May be done with BRegion reg; GetNativeRegion(&reg);
invalid.Include(&mView->paintregion);
//OnPaint don't need Lock()
mView->UnlockLooper();
// Drawing uncovered regions by direct OnPaint call,