-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix High DPI support #136
Comments
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). 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.)
The text was updated successfully, but these errors were encountered: