mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-25 18:24:59 +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(
|
SDL_CreateWindowAndRenderer(
|
||||||
640,
|
640,
|
||||||
480,
|
480,
|
||||||
SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE,
|
SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI,
|
||||||
&m_window,
|
&m_window,
|
||||||
&m_renderer
|
&m_renderer
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue