[gtk+/rendering-cleanup-next: 159/199] gdk: No need to clear offscreen window when showing



commit 4a23f74603f86fa82db1c907dd00c2001ebd7d8f
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 12:11:24 2010 +0200

    gdk: No need to clear offscreen window when showing
    
    I don't think it's necessary to clear the backing surface when showing
    the window, as we're going to repaint it anyway. If it's needed, we can
    implement it again using internal APIs, as the public window_clear()
    APIs are going away.

 gdk/gdkoffscreenwindow.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index c46b8f2..09375d3 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -454,8 +454,6 @@ gdk_offscreen_window_show (GdkWindow *window,
   GdkWindowObject *private = (GdkWindowObject *)window;
   GdkRectangle area = { 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]