Browse Source

#2590 enable high dpi

Laserlicht 1 year ago
parent
commit
0c5fb8125f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mapeditor/main.cpp

+ 4 - 0
mapeditor/main.cpp

@@ -13,6 +13,10 @@
 
 int main(int argc, char * argv[])
 {
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
+	QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
+
 	QApplication vcmieditor(argc, argv);
 	MainWindow mainWindow;
 	return vcmieditor.exec();