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



commit dd7b8d373cb8ddfc522ada0b9885c94ba090cb3d
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 2c80808..bbf18e9 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -575,9 +575,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]