Sync to desktop - Federico

This commit is contained in:
Arturo Espinosa 1999-11-01 19:09:20 +00:00
parent 827b818ed1
commit c3b9b0f7f4

View File

@ -615,9 +615,31 @@ gnome_canvas_pixbuf_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
width, height, width * 4,
NULL, NULL);
gdk_pixbuf_render_to_drawable (pixbuf, drawable, 0, 0, 0, 0, width, height,
GDK_RGB_DITHER_MAX, x, y);
gdk_pixbuf_render_to_drawable_alpha (pixbuf, drawable,
0, 0,
0, 0,
width, height,
GDK_PIXBUF_ALPHA_BILEVEL,
127,
GDK_RGB_DITHER_MAX,
x, y);
gdk_pixbuf_unref (pixbuf);
g_free (buf);
}
/* Point handler for the pixbuf canvas item */
static double
gnome_canvas_pixbuf_point (GnomeCanvasItem *item, double x, double y, int cx, int cy,
GnomeCanvasItem **actual_item)
{
GnomeCanvasPixbuf *gcp;
PixbufPrivate *priv;
gcp = GNOME_CANVAS_PIXBUF (item);
priv = gcp->priv;
}