Commit 8a1283ac authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't call into the backend if the region is empty. (#437081, Sven

2007-05-10  Matthias Clasen <mclasen@redhat.com>

        * gdk/gdkdraw.c (gdk_draw_pixbuf): Don't call into
        the backend if the region is empty.  (#437081, Sven Neumann)



svn path=/trunk/; revision=17813
parent 88283d7d
2007-05-10 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkdraw.c (gdk_draw_pixbuf): Don't call into
the backend if the region is empty. (#437081, Sven Neumann)
2007-05-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksearchenginesimple.c (search_visit_func);
......
......@@ -751,13 +751,17 @@ gdk_draw_pixbuf (GdkDrawable *drawable,
g_return_if_fail (gc == NULL || GDK_IS_GC (gc));
g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
if (width == 0 || height == 0)
return;
if (width == -1)
width = gdk_pixbuf_get_width (pixbuf);
if (height == -1)
height = gdk_pixbuf_get_height (pixbuf);
GDK_DRAWABLE_GET_CLASS (drawable)->draw_pixbuf (drawable, gc, pixbuf,
src_x, src_y, dest_x, dest_y, width, height,
src_x, src_y, dest_x, dest_y,
width, height,
dither, x_dither, y_dither);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment