瀏覽代碼

#2590 enable high dpi

Laserlicht 1 年之前
父節點
當前提交
0c5fb8125f
共有 1 個文件被更改,包括 4 次插入0 次删除
  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();