SDL: Hint to Windows that we handle DPI scaling (#2729)

This commit is contained in:
BreakPoints
2023-06-14 02:45:57 +01:00
committed by GitHub
parent e2c84d7635
commit 756fcc3e4d
+2
View File
@@ -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