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), pinball::get_rc_string(38, 0),
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
800, 556, 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; MainWindow = window;
if (!window) if (!window)