Closed aufau closed 4 months ago
This branch: https://github.com/aufau/jk2mv/tree/wip/sdl_hidpi has code working on macos (sdl support for wayland seems broken for now, at least with opengl). The only problem is when you launch fullscreen with non-desktop resolution. It seems to be SDL bug (wrong opengl drawing size returned by SDL?) and I'm not very motivated to work on it anymore.
Non high-dpi mode works ok. Only that you can't get high resolutions.
Fixed in #138
In 1.4.1 High dpi support works correctly on Windows because it reports DPI as 96 * desktop scaling. It is not the case on X11, wayland and macos.
For a quick fix, revert jk2mv@a678ad2755dd155a52912b3a3c969c581e83efdb and Disable DPI console font.scaling on linux/macos.
SDL has a concept of "screen coordinates" for high dpi support (when conditions mentioned in 1. are met) and it seems to work on macos and wayland (wayland support is new in sdl and may be buggy). Find out if there is a better method for windows and X11 than using DPI (for reasons explained in 2.)