From 2e40ab62441fd39a9811ba4d0f882dd7f22bec7a Mon Sep 17 00:00:00 2001
From: txtsd <thexerothermicsclerodermoid@gmail.com>
Date: Sun, 20 Mar 2022 11:30:56 +0530
Subject: (fix): Allow fractional DPI scaling

---
 launcher/main.cpp | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'launcher/main.cpp')

diff --git a/launcher/main.cpp b/launcher/main.cpp
index 8b572743..275fff32 100644
--- a/launcher/main.cpp
+++ b/launcher/main.cpp
@@ -29,6 +29,10 @@ int main(int argc, char *argv[])
     QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
 #endif
 
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
+    QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
+#endif
+
     // initialize Qt
     Application app(argc, argv);
 
-- 
cgit