[Bug] Resolution halfed on OSX
Problem,
Running Sonoma 14.5 (23F79), when going full screen the resolution is halfed and leads to bigger pixels than necessary. Using preview, I compared EE lines with the one from a line drawn from preview.
see attached pictures:
Note: I know that the game does not support OSX, but I still wanted to track the issue as I'm developping on it and might fix it later.
I can reproduce this on an M1 Mac Mini connected to a 4k display, but it's macOS display scaling.
With this macOS display scaling setting, where it simulates a 2560x1440 display:
each EE "pixel" is doubled (the selection is 1x1):
When I change the macOS display scaling setting to "more space", it uses the display's native 3840 x2160 resolution:
and each EE "pixel" is a single pixel (the selection is 1x1):
Full-screen screenshots with the display scaled to "larger text" (1504x846 virtual resolution, 3x pixels)
scaled to the middle setting (2560x1440 virtual resolution, 2x pixels)
and set to "more space" (native 3840x2160, 1x pixels)
Note how the rendered text is also blurrier at the lower virtual resolutions; the text is being rendered at the default size, shrunk to the virtual resolution, then scaled up to the display resolution, further distorting it.
True high-DPI display support (including detecting macOS display scale) is an SDL 3.0 concern: https://github.com/libsdl-org/SDL/blob/main/docs/README-highdpi.md, libsdl-org/SDL#7134