Make sure we update the update-area when doing synchronous updates or full widget updates

This commit is contained in:
kipp%netscape.com 1999-03-18 21:19:59 +00:00
Родитель 7e4b526ce6
Коммит ef249993cc
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -435,10 +435,13 @@ NS_METHOD nsWidget::Invalidate(PRBool aIsSynchronous)
return NS_ERROR_FAILURE;
}
if (aIsSynchronous)
if (aIsSynchronous) {
::gtk_widget_draw(mWidget, NULL);
else
mUpdateArea.SetRect(0, 0, 0, 0);
} else {
::gtk_widget_queue_draw(mWidget);
mUpdateArea.SetRect(0, 0, mBounds.width, mBounds.height);
}
#ifdef DEBUG_pavlov
g_print("nsWidget::Invalidate(this=%p, %i)\n", this, aIsSynchronous);