Tom94 / tev

High dynamic range (HDR) image viewer for graphics people
BSD 3-Clause "New" or "Revised" License
1.08k stars 86 forks source link

Moving tev between monitors causes scale factor problems #135

Closed hjmallon closed 3 years ago

hjmallon commented 3 years ago

I built tev from master branch (for macOS HDR features! - thank you). I notice that if I open tev.app on an external display, then move it to the macbook pro display (or vice versa) I end up with scaling problems in the UI. The hitboxes for the mouse do seem to be correctly scaled, just not the image (making it extra difficult to use as they don't line up).

This screenshot is what happens if I move the app from the laptop display to an external display (extra small text etc). The opposite (extra big text) happens if I go the other way.

Screenshot 2021-09-06 at 15 37 16

I built from dafebdbaf8ad8df8aa7c23219216c541e1f2025c

Tom94 commented 3 years ago

Thanks for letting me know!

At first glance, this seems to be unsupported by tev's underlying GUI framework, nanogui; see https://github.com/wjakob/nanogui/issues/448

However, there appear to be at least some measures in place for OSX specifically. Also, the linked issue from above suggests a very simple solution that should be easy to integrate these days.

Will get back to this issue when I had a chance to investigate further.

Tom94 commented 3 years ago

The fix appears surprisingly simple, so I quickly implemented it -- since I don't have a macOS dual-screen system with varying scales handy, would it be possible for you to test the linked branch?

hjmallon commented 3 years ago

That content-scale branch seems to work pretty smoothly for me, thanks for the speedy fix.