mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
Set SDL window as DPI-aware
This works on macOS, Wayland, and a few more esoteric platforms. X11 doesn't have a concept of DPI-awareness. Note that with this flag SDL_GetWindowSize() isn't guaranteed to return the actual window size.
This commit is contained in:
parent
a32fc4a307
commit
d9fff2a8c3
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ void Screen::init(const ScreenSettings& settings)
|
|||
SDL_CreateWindowAndRenderer(
|
||||
640,
|
||||
480,
|
||||
SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE,
|
||||
SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI,
|
||||
&m_window,
|
||||
&m_renderer
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue