[gtk+] gdk: No need to clear offscreen window when showing



commit fd200f07f5ed87d2ecbd815a86f4dcdc1e17f23b
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]