From c3b9b0f7f4a3d22bf17845dbe827fe6b15baa594 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Mon, 1 Nov 1999 19:09:20 +0000 Subject: [PATCH] Sync to desktop - Federico --- gdk-pixbuf/gnome-canvas-pixbuf.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/gdk-pixbuf/gnome-canvas-pixbuf.c b/gdk-pixbuf/gnome-canvas-pixbuf.c index 8195a608de..ab1b112160 100644 --- a/gdk-pixbuf/gnome-canvas-pixbuf.c +++ b/gdk-pixbuf/gnome-canvas-pixbuf.c @@ -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; + + +}