Browse Source

[launcher] enable High DPI

Laserlicht 1 year ago
parent
commit
59b40c7871
1 changed files with 3 additions and 0 deletions
  1. 3 0
      launcher/main.cpp

+ 3 - 0
launcher/main.cpp

@@ -43,6 +43,9 @@ int MAIN_EXPORT main(int argc, char * argv[])
 	int result;
 #ifdef VCMI_IOS
 	{
+#endif
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+	QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
 #endif
 	QApplication vcmilauncher(argc, argv);