Commit e7100fcb authored by Deucе's avatar Deucе 👌🏾
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
Pipeline #2221 passed with stage
in 8 minutes and 55 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment