friction2d / friction

Friction Graphics
https://friction.graphics
GNU General Public License v3.0
185 stars 10 forks source link

Windows HiDPI issues #68

Closed rodlie closed 10 months ago

rodlie commented 10 months ago

HiDPI on Windows is completely broken.

rodlie commented 10 months ago

For reference (125% display scaling):

Ubuntu (22.04)

Screenshot from 2023-09-03 01-31-21

Windows (10)

friction-windows-hidpi-125

NothingHereIsReal commented 10 months ago

I can confirm on Windows 10. Also, clickable regions (for example setting up gradients) appear to be off. Clicking higher and further to the right seems to work but is not aligned with UI elements. This might be to do with using a scaled screen. I'm on a 4K monitor with a scaling of 150%.

rodlie commented 10 months ago

Yes, hidpi on Windows is broken. Will start working on it this weekend and should be resolved by the next release.

rodlie commented 10 months ago

Got something usable: friction-hidpi-ok friction-hidpi-150

Will make a snapshot for people to test when done.

EDIT: final (150%) friction-windows-hidpi

rodlie commented 10 months ago

Please test https://github.com/friction2d/friction/releases/tag/v0.9.5-beta1

NothingHereIsReal commented 10 months ago

I've just spent some time going through the beta and it all works fine as far as I can tell. The click "offset" from the previous build is now working correctly.