Changed Refresh() to use the dimensions of the widget associated with

theview being repainted, rather than the dimensions of the root widget
This commit is contained in:
troy%netscape.com 1998-10-29 19:47:19 +00:00
Родитель d029154680
Коммит 697d10d512
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -293,7 +293,11 @@ void nsViewManager :: Refresh(nsIView *aView, nsIRenderingContext *aContext, nsI
if (aUpdateFlags & NS_VMREFRESH_DOUBLE_BUFFER)
{
mRootWindow->GetBounds(wrect);
nsIWidget* widget;
aView->GetWidget(widget);
widget->GetBounds(wrect);
wrect.x = wrect.y = 0;
NS_RELEASE(widget);
ds = GetDrawingSurface(*localcx, wrect);
localcx->SelectOffScreenDrawingSurface(ds);
}