diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index b74960c074..7f6f331e0f 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,5 +1,8 @@ 1999-11-03 Federico Mena Quintero + * src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_point): I'm a + doofus. Return a distance, not a boolean, for opaque images. + * src/gnome-canvas-pixbuf.c (recompute_bounding_box): Do proper rounding of bounding box coordinates. (gnome_canvas_pixbuf_bounds): Implemented the ::bounds() method. diff --git a/gdk-pixbuf/gnome-canvas-pixbuf.c b/gdk-pixbuf/gnome-canvas-pixbuf.c index 57b7626d6a..687ed2651e 100644 --- a/gdk-pixbuf/gnome-canvas-pixbuf.c +++ b/gdk-pixbuf/gnome-canvas-pixbuf.c @@ -788,7 +788,7 @@ gnome_canvas_pixbuf_point (GnomeCanvasItem *item, double x, double y, int cx, in return no_hit; if (!apb->has_alpha) - return TRUE; + return 0.0; src = apb->pixels + py * apb->rowstride + px * apb->n_channels;