You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_commandLineDpiScalingPolicy is set here and only here to GlfwDpiScalingPolicy::Default, which is just an alias to the platform-dependant default policy.
Crucially GlfwDpiScalingPolicy::Default is not0
so... when this code comes along:
to args.addOption("dpi-scaling")
taking out the default option, because that seems to be what the first branch was made to parse
and it does what i would expect it to do
Re glfwGetWindowContentScale() -- this is on my list to fix for Windows (#411), unfortunately right now i only have access to a Mac, where the DPI scaling is the weirdest of all, impatiently waiting for my real computer to get back from a repair 😅
Re the other thing -- yep there's definitely something fishy. I'll check what SDL does also, I remember at least one of the two had it working correctly at some point.
If there is no
--magnum-dpi-scaling
specified on the command line, dpi-scaling is set to"default"
Which according to this code, which is run by every ctor of GlfwApplication:
magnum/src/Magnum/Platform/GlfwApplication.cpp
Lines 91 to 108 in 7cfa170
_commandLineDpiScalingPolicy
is set here and only here toGlfwDpiScalingPolicy::Default
, which is just an alias to the platform-dependant default policy.Crucially
GlfwDpiScalingPolicy::Default
is not0
so... when this code comes along:
magnum/src/Magnum/Platform/GlfwApplication.cpp
Lines 137 to 150 in 7cfa170
and checks
if(UnsignedByte(_commandLineDpiScalingPolicy))
The other 2 cases are not possible!
The text was updated successfully, but these errors were encountered: