Explorar o código

#2590 enable high dpi

Laserlicht hai 1 ano
pai
achega
0c5fb8125f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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();