summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-04-26 22:17:27 +0200
committerPetr Mrázek <peterix@gmail.com>2017-04-26 22:17:27 +0200
commitedc25dab17776e5e1b748006a12abfed5b9478b7 (patch)
tree1e6b4524a50ca403986818adaa3d66367e5add50 /application
parent6dc1bc65e1bf4cca5390173a167d6d5115ac9688 (diff)
downloadMultiMC-edc25dab17776e5e1b748006a12abfed5b9478b7.tar
MultiMC-edc25dab17776e5e1b748006a12abfed5b9478b7.tar.gz
MultiMC-edc25dab17776e5e1b748006a12abfed5b9478b7.tar.lz
MultiMC-edc25dab17776e5e1b748006a12abfed5b9478b7.tar.xz
MultiMC-edc25dab17776e5e1b748006a12abfed5b9478b7.zip
NOISSUE Set AA_EnableHighDpiScaling for Qt >= 5.6.0
Diffstat (limited to 'application')
-rw-r--r--application/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/main.cpp b/application/main.cpp
index 0f258926..48983dd6 100644
--- a/application/main.cpp
+++ b/application/main.cpp
@@ -28,6 +28,10 @@ int main(int argc, char *argv[])
return 42;
#endif
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
+
// initialize Qt
MultiMC app(argc, argv);