summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index abd426ce..6fd73d4f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -240,6 +240,10 @@ Client::Client(const Options &options):
initScreenshotDir();
+#if SDL_VERSION_ATLEAST(2, 24, 0)
+ SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2");
+#endif
+
// Initialize SDL
logger->log("Initializing SDL...");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) < 0)