Disable/enable screen updates around process_all_updates to speed up rendering

This commit is contained in:
Richard Hult 2009-02-05 08:23:58 +01:00 committed by Alexander Larsson
parent 53b3343d1b
commit 9af5f2b495

View File

@ -406,6 +406,8 @@ void
_gdk_windowing_before_process_all_updates (void)
{
in_process_all_updates = TRUE;
NSDisableScreenUpdates ();
}
void
@ -432,6 +434,8 @@ _gdk_windowing_after_process_all_updates (void)
g_slist_free (old_update_nswindows);
in_process_all_updates = FALSE;
NSEnableScreenUpdates ();
}
static void