1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-17 07:10:18 +01:00

Enable HiDPI support, only tested on macOS

This commit is contained in:
ThatsNiceGuy 2022-06-17 00:05:47 -06:00
parent eed3662592
commit 76aedfb052

View file

@ -67,7 +67,8 @@ int winmain::WinMain(LPCSTR lpCmdLine)
pinball::get_rc_string(38, 0),
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
800, 556,
SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE
SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI
// Enable HiDPI support by adding SDL_WINDOW_ALLOW_HIGHDPI, only tested on macOS
);
MainWindow = window;
if (!window)