[gtk+/client-side-windows: 268/284] Disable/enable screen updates around process_all_updates to speed up rendering



commit 9af5f2b4955b502f2699484ed9130e7f15a0f2f5
Author: Richard Hult <richard imendio com>
Date:   Thu Feb 5 08:23:58 2009 +0100

    Disable/enable screen updates around process_all_updates to speed up rendering
---
 gdk/quartz/gdkwindow-quartz.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 5c01f7c..0586460 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]