Skip to content

Commit

Permalink
sdl: Directly use Windows DPI scaling hint, not SDL (#2730)
Browse files Browse the repository at this point in the history
Co-authored-by: ManDude <7569514+ManDude@users.noreply.github.com>
  • Loading branch information
BreakPoints and ManDude committed Jun 17, 2023
1 parent d8cca2b commit 1512c6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions game/system/hid/display_manager.cpp
Expand Up @@ -7,8 +7,10 @@

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");
#ifdef _WIN32
// Windows hint to disable OS level forced scaling and allow native resolution at non 100% scales
SetProcessDPIAware();
#endif
update_curr_display_info();
update_video_modes();
// Load display settings from a file
Expand Down

0 comments on commit 1512c6b

Please sign in to comment.