Re: world vs. canvas coordinates in comment in gnome-canvas.h
- From: Federico Mena Quintero <federico helixcode com>
- To: darin eazel com
- CC: gnome-list gnome org
- Subject: Re: world vs. canvas coordinates in comment in gnome-canvas.h
- Date: Thu, 10 Feb 2000 17:51:29 -0500
> The comments for the x1, x2, y1, and y2 fields of GnomeCanvasItem say that
> these are in world coordinates. But it seems clear from the actual code that
> they are in canvas coordinates. Should this be corrected in the header file
> or am I missing something?
The comments are incorrect. The bounding box should be given in
canvas pixel coordinates. And the canvas in the 1-0 branch is broken
in that respect, because the fields that store the bounding box should
be ints, not doubles.
This is fixed in the CANVAS_CLEANUP branch.
] [Thread Prev