Skip to content
Snippets Groups Projects
Commit e7100fcb authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Specify HighDPI mode when creating a window.

This may solve issue where using Windows "DPI scaling" forces the
window to be scaled.
parent d4e099e0
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2221 passed
......@@ -633,6 +633,10 @@ static void setup_surfaces_locked(void)
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
else
flags |= SDL_WINDOW_RESIZABLE;
#if (SDL_MINOR_VERSION > 0) || (SDL_PATCHLEVEL >= 1)
flags |= SDL_WINDOW_ALLOW_HIGHDPI;
#endif
pthread_mutex_lock(&win_mutex);
charwidth = cvstat.charwidth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment