-
Notifications
You must be signed in to change notification settings - Fork 337
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
High DPI Support #589
Comments
Notes:
window = new sdl.Window(title, width, height,
sdl.Window.SDL_WINDOWPOS_CENTERED, sdl.Window.SDL_WINDOWPOS_CENTERED,
sdl.Window.SDL_WINDOW_SHOWN |
sdl.Window.SDL_WINDOW_RESIZABLE |
sdl.Window.SDL_WINDOW_ALLOW_HIGHDPI
);
|
In order to support this on SDL first, we would need to be able to query from SDL for the screen DPI, as described here https://nlguillemot.wordpress.com/2016/12/11/high-dpi-rendering/ This requires adding some new primitives to Hashlink/SDL support here: Once this is done, I guess we could enable it with a define: -D highdpi and add the #if highdpi sections in the SDL Window support. |
Looks like this issue can be fixed if you use the latest version of SDL (beyond the latest release on homebrew). This is a quick fix that has worked for me and others:
|
Requesting High DPI support.
Looks like all the work in the hashlink SDL plugin is already done to support passing the
SDL_WINDOW_ALLOW_HIGHDPI
flag at window creation time. Not sure what the required support would look like when using DirectX.Would love to see the feature abstracted through heaps and any advice on best implementation is welcome as I can submit a PR to support it.
The text was updated successfully, but these errors were encountered: