diff options
author | Ezekiel Smith <ezekielsmith@protonmail.com> | 2022-03-21 11:21:21 +1100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-03-22 20:11:15 +0100 |
commit | fcf728f3b5f4923cc05edfeb45f8340f420669cf (patch) | |
tree | 9a7c57c540cd42d7e7e5bb988bafbbd4dd6a1818 /launcher/main.cpp | |
parent | cd4851c98be26e05a22ba55cc9804fbdb178d7d3 (diff) | |
download | PrismLauncher-fcf728f3b5f4923cc05edfeb45f8340f420669cf.tar.gz PrismLauncher-fcf728f3b5f4923cc05edfeb45f8340f420669cf.tar.bz2 PrismLauncher-fcf728f3b5f4923cc05edfeb45f8340f420669cf.zip |
Merge pull request #315 from txtsd/display_scaling
Allow fractional DPI scaling
Diffstat (limited to 'launcher/main.cpp')
-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); |