-
-
Notifications
You must be signed in to change notification settings - Fork 195
Scale factor calculation on Linux #878
Copy link
Copy link
Open
Labels
A-renderingArea: Rendering artifacts, features etc.Area: Rendering artifacts, features etc.bugSomething isn't workingSomething isn't workingplatform-linuxPlatform: LinuxPlatform: Linux
Description
Activity
Metadata
Metadata
Assignees
Labels
A-renderingArea: Rendering artifacts, features etc.Area: Rendering artifacts, features etc.bugSomething isn't workingSomething isn't workingplatform-linuxPlatform: LinuxPlatform: Linux
Hi!
I noticed an issue with the scaling factor calculation in Linux that causes a very high scale factor to be set, which in turn makes Oni2 as an example to render like this:
Looking at
revery/src/Core/Window.re
Lines 94 to 97 in 9cf3daa
I'm using a very unusual monitor resolution of 5120x1440 which might be an edge case that causes some weird bug, or it might be X returning it wrong for whatever reason.
Either way, what do you think would be a good mitigation for this?
We could say that if the resulting scaleFactor is higher than a given threshold then assume that the calculation is wrong and set it to 1.0?