image: replace gdk_draw_pixbuf() call with Cairo equivalent

This commit is contained in:
Benjamin Otte
2010-07-12 14:25:53 +02:00
parent 0310626938
commit 847d401df3

View File

@ -2194,17 +2194,11 @@ gtk_image_expose (GtkWidget *widget,
if (pixbuf) if (pixbuf)
{ {
gdk_draw_pixbuf (widget->window, cairo_t *cr = gdk_cairo_create (widget->window);
widget->style->black_gc, gdk_cairo_set_source_pixbuf (cr, pixbuf, x, y);
pixbuf, gdk_cairo_rectangle (cr, &image_bound);
image_bound.x - x, cairo_fill (cr);
image_bound.y - y, cairo_destroy (cr);
image_bound.x,
image_bound.y,
image_bound.width,
image_bound.height,
GDK_RGB_DITHER_NORMAL,
0, 0);
} }
} }
else else