I have an application that rotates an image and draws it at a canvas.
In the Paint Method of the canvas:
dim px as PixmapShape
px = New PixmapShape(cw_arrow16)
px.rotation = IconAngle * 0.017453
g.DrawObject(px, RScenterX, RScenterY )
This all works correct in windows, Mac and Linux when built in Xojo 2021R2.1
I now recompiled this project in Xojo 2024R2.1. It still works correctly in windows and Mac, but when I run it under Linux the rotated picture is completely off-center. It does not matter if I build the Linux app on a Windows machine or Mac.
Is this a bug or am I doing something wrong?
When posting code please highlight it and press the </> button. It makes it more readable. Secondly you don’t seem to have posted the code that calculates RScenterX and RScenterY, which would seem to be critical to this issue.
RScenterX and RScenterY are just constants (15, 220)
These are the coordinates where px should be drawn at the canvas.
px should just be rotated around it’s own center.
Maybe this requires different of additional coding. I can’t find that however in any documentation or example (probably my mistake).
This code works as intended in Windows, Linux and Mac when built with Xojo 2021R2.1 and in Windows and Mac when built with Xojo 2024R2.1. It only does not work correctly when built for Linux wirt Xojo 2024R2.1. So apparently something has changed between Xojo 2021R2.1 and Xojo 2024R2.1 that breaks it specifically for Linux only.