[gtk+/client-side-windows: 159/284] Clip exposed area to the visible region.



commit 815f0d7605da29be924b2bdfa95c94a0c47509b6
Author: Alexander Larsson <alex localhost localdomain>
Date:   Thu Jan 22 15:18:03 2009 +0100

    Clip exposed area to the visible region.
    
    This avoids extra work, and it means we won't allocate large pixmaps
    for double buffering.
---
 gdk/gdkwindow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 755bc5b..cc0765d 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -4430,6 +4430,9 @@ gdk_window_process_updates_internal (GdkWindow *window)
 	  GdkRegion *window_region;
 	  gboolean end_implicit;
 
+	  /* Clip to part visible in toplevel */
+	  gdk_region_intersect (update_area, private->clip_region);
+	  
           if (debug_updates)
             {
               /* Make sure we see the red invalid area before redrawing. */



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