image: replace gdk_draw_pixbuf() call with Cairo equivalent
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user