mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user