Re: world vs. canvas coordinates in comment in gnome-canvas.h



>  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.

  Federico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]