mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user