From e7100fcbd1aae6959c38ee4034b74d8af75ef0fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 17 May 2021 12:38:20 -0400
Subject: [PATCH] Specify HighDPI mode when creating a window.

This may solve issue where using Windows "DPI scaling" forces the
window to be scaled.
---
 src/conio/sdl_con.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c
index 00d6c2ff78..6228388b3c 100644
--- a/src/conio/sdl_con.c
+++ b/src/conio/sdl_con.c
@@ -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;
-- 
GitLab