Why canvasposition first outlet gives coordinates divided by two when zoom = 2
Closed this issue · 4 comments
Hi, I cannot understand why, when the object is banged, the first outlet delivers the coordinates values divided by 2, when zoom = 2. In the source code it's located here :
https://github.com/iem-projects/pd-iemguts/blob/999a9a5209af7a8abd80264f06ac7e84a751a8ad/src/canvasposition.c#L91C1-L92C30
In a previous issue #8 they were multiplied by two. It was considered a bug.
but now I don't know what to think.
Fortunately, this can be fixed in the patch using the zoom message on third outlet.
indeed.
i stumbled upon this myself a while ago, but had no time to investigate.
i'm pretty sure it is (still) a bug.
the other question is what to do about the "object-size" (coming out of the 3rd outlet with the size
selector).
it currently is also scaled (up) by the zoom-factor, and has always been like this.
ah i just found out: older versions of Pd (namely e.g. 0.48) did require the scaling for proper values.
so iemguts just needs to adjust for newer Pd.
the incompatible change in Pd was pure-data/pure-data@a6e3bba (leading to the 0.50-0 release)
Thanks !