forked from AuroraMiddleware/gtk
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:
parent
ba718c979c
commit
80ce14813b
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user