[gtk+/rendering-cleanup: 36/144] gdk: Don't use clear_area_e() in offscreenwindow



commit f162d87e7f2484f68cfc122f368e9d2ce6dcd9db
Author: Benjamin Otte <otte redhat com>
Date:   Sun Aug 15 03:10:16 2010 +0200

    gdk: Don't use clear_area_e() in offscreenwindow
    
    Instead, call gdk_window_invalidate_rect() ourselves.

 gdk/gdkoffscreenwindow.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index f109e25..4dec11e 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -540,9 +540,11 @@ gdk_offscreen_window_show (GdkWindow *window,
 			   gboolean already_mapped)
 {
   GdkWindowObject *private = (GdkWindowObject *)window;
+  GdkRectangle area = { 0, 0, private->width, private->height };
 
-  gdk_window_clear_area_e (window, 0, 0,
-			   private->width, private->height);
+  gdk_window_clear_area (window, 0, 0,
+			 private->width, private->height);
+  gdk_window_invalidate_rect (window, &area, FALSE);
 }
 
 



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