I'm a doofus. Return a distance, not a boolean, for opaque images.

1999-11-03  Federico Mena Quintero  <federico@redhat.com>

	* src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_point): I'm a
	doofus.  Return a distance, not a boolean, for opaque images.
This commit is contained in:
Federico Mena Quintero 1999-11-03 20:39:27 +00:00 committed by Arturo Espinosa
parent ba718c979c
commit 80ce14813b
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
1999-11-03 Federico Mena Quintero <federico@redhat.com>
* 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.

View File

@ -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;