Hallo, Thomas Ouellet Fredericks hat gesagt: // Thomas Ouellet Fredericks wrote:
This patch SHOULD keep the pixel size of a rectangle.
You MUST set the size of the gem window when you create it. Press the red button then change the width and height of the rect.
I found, that part of your calculation is unnecessary, because you divide and multiply with the width at the same time, which will always be times 1 anyway. Attached is a version where this is omited. Interestingly the factor to scale between screen pixels and the Gem coordinate (in the default view) only seems to depend on the height of the Gem window.
Frank Barknecht _ ______footils.org_ __goto10.org__