Merge pull request #589 from hamb3r/fix/windows-dpi-awareness

fix(video): set per-monitor v2 DPI awareness on Windows
This commit is contained in:
Dean
2026-10-05 14:31:18 +13:00
committed by GitHub
@@ -199,6 +199,7 @@ VideoOutDriver& VideoOutDriver::Get() {
}
VideoOutDriver::VideoOutDriver() {
SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2");
if (SDL_InitSubSystem(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) < 0) {
throw std::runtime_error(std::string("SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: ") + SDL_GetError());
}