wind_get area issue
Posted: 20 Dec 2022 14:16
I thought I would try this function to return the working area of the window for aligning objects better.
Now this function does actually sort of work. Only does not seem to take into account the actual borders of the Windows. This is more problematic with 3D sylte windows as the window itself has to be a few pixels larger to accommodate the contents.
So the question is how are you supposed to get around these problems other than what I did before in just adding a few pixels padding around objects. The problem with that is it is difficult to get all the objects to align seamlessly :roll:
There also seems to be some "bug" in MiNT as the object area doesn't calculate correctly.
EG:
In TOS:
But even TOS manages to miss the bottom/right edges off somehow as well :shrug:
Code: Select all
junk=wind_get(our_aeshandle,WF_WORKXYWH,xw,yw,ww,hw)So the question is how are you supposed to get around these problems other than what I did before in just adding a few pixels padding around objects. The problem with that is it is difficult to get all the objects to align seamlessly :roll:
There also seems to be some "bug" in MiNT as the object area doesn't calculate correctly.
EG:
In TOS:
But even TOS manages to miss the bottom/right edges off somehow as well :shrug: