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
This commit is contained in:
Benjamin Otte 2010-09-20 20:21:51 +02:00
parent b79e6c0b3e
commit afd3b96e2e

View File

@ -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);
}