From 756fcc3e4dfbe3ee0d85cd1a338dfe8bdd6ffc5d Mon Sep 17 00:00:00 2001 From: BreakPoints Date: Wed, 14 Jun 2023 02:45:57 +0100 Subject: [PATCH] SDL: Hint to Windows that we handle DPI scaling (#2729) --- game/system/hid/display_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/system/hid/display_manager.cpp b/game/system/hid/display_manager.cpp index 05866c236d..3c5b812b84 100644 --- a/game/system/hid/display_manager.cpp +++ b/game/system/hid/display_manager.cpp @@ -7,6 +7,8 @@ DisplayManager::DisplayManager(SDL_Window* window) : m_window(window), m_selected_fullscreen_display_id(0) { + // SDL hint to disable OS level forced scaling and allow native resolution at non 100% scales + SDL_SetHint("SDL_WINDOWS_DPI_SCALING", "true"); update_curr_display_info(); update_video_modes(); // Load display settings from a file