[mutter] Simplify code: Use cairo_paint() to paint the whole pixmap



commit afd3b96e2e3be680852f73ae087abdc69dacdcf7
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 20:21:51 2010 +0200

    Simplify code: Use cairo_paint() to paint the whole pixmap
    
    Also, gdk_drawable_get_size() is going away soon
    
    https://bugzilla.gnome.org/show_bug.cgi?id=630203

 src/ui/frames.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index e25f361..e2efea6 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2094,14 +2094,11 @@ clear_backing (GdkPixmap *pixmap,
                GdkWindow *window,
                int xoffset, int yoffset)
 {
-  int width, height;
   cairo_t *cr = gdk_cairo_create (pixmap);
 
   setup_bg_cr (cr, window, xoffset, yoffset);
 
-  gdk_drawable_get_size (GDK_DRAWABLE (pixmap), &width, &height);
-  cairo_rectangle (cr, 0, 0, width, height);
-  cairo_fill (cr);
+  cairo_paint (cr);
   
   cairo_destroy (cr);
 }



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