зеркало из https://github.com/mozilla/pjs.git
Removed drawing optimization because it causes flicker.
This commit is contained in:
Родитель
db8356e6dc
Коммит
3a974c03d6
|
@ -1635,9 +1635,11 @@ NS_IMETHODIMP nsViewManager :: DispatchEvent(nsGUIEvent *aEvent, nsEventStatus &
|
|||
// See if the paint region is greater than .25 the area of our view.
|
||||
// If so, enable double buffered painting.
|
||||
|
||||
arearect.IntersectRect(damrect, viewrect);
|
||||
// XXX These two lines cause a lot of flicker for drag-over re-drawing - rods
|
||||
//arearect.IntersectRect(damrect, viewrect);
|
||||
|
||||
if ((((float)arearect.width * arearect.height) / varea) > 0.25f)
|
||||
//if ((((float)arearect.width * arearect.height) / varea) > 0.25f)
|
||||
// XXX rods
|
||||
updateFlags |= NS_VMREFRESH_DOUBLE_BUFFER;
|
||||
|
||||
//printf("refreshing: view: %x, %d, %d, %d, %d\n", view, trect.x, trect.y, trect.width, trect.height);
|
||||
|
@ -2228,7 +2230,7 @@ nsDrawingSurface nsViewManager :: GetDrawingSurface(nsIRenderingContext &aContex
|
|||
|
||||
nscolor col = NS_RGB(255,255,255);
|
||||
aContext.SetColor(col);
|
||||
aContext.FillRect(bounds);
|
||||
//aContext.FillRect(bounds);
|
||||
}
|
||||
|
||||
return mDrawingSurface;
|
||||
|
|
Загрузка…
Ссылка в новой задаче