fix invalidate async problem that michaelp reported.

This commit is contained in:
pavlov%pavlov.net 1999-02-05 18:54:43 +00:00
parent a7be33d09d
commit 9d55a9a24d

View File

@ -431,16 +431,12 @@ NS_METHOD nsWidget::Invalidate(const nsRect & aRect, PRBool aIsSynchronous)
nRect.x = aRect.x;
nRect.y = aRect.y;
#ifdef GTK_HAVE_FEATURES_1_1_14
if ( aIsSynchronous)
#endif
::gtk_widget_draw(mWidget, &nRect);
#ifdef GTK_HAVE_FEATURES_1_1_14
else
::gtk_widget_queue_draw_area(mWidget,
aRect.x, aRect.y,
aRect.width, aRect.height);
#endif
return NS_OK;
}