diff options
author | txtsd <thexerothermicsclerodermoid@gmail.com> | 2022-03-20 11:30:56 +0530 |
---|---|---|
committer | txtsd <thexerothermicsclerodermoid@gmail.com> | 2022-03-20 20:02:24 +0530 |
commit | 2e40ab62441fd39a9811ba4d0f882dd7f22bec7a (patch) | |
tree | 8def26fc17f09449d33b5e1ed8e6bc3f1752435a | |
parent | 8bc6cdf55c143313616aefe12a3c8bf7f0b67557 (diff) | |
download | PrismLauncher-2e40ab62441fd39a9811ba4d0f882dd7f22bec7a.tar.gz PrismLauncher-2e40ab62441fd39a9811ba4d0f882dd7f22bec7a.tar.bz2 PrismLauncher-2e40ab62441fd39a9811ba4d0f882dd7f22bec7a.zip |
(fix): Allow fractional DPI scaling
-rw-r--r-- | launcher/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |