|
@@ -156,9 +156,13 @@ int main(int argc, char *argv[])
|
|
|
}
|
|
|
|
|
|
auto scale = parser.value("scale-factor");
|
|
|
+#ifdef Q_OS_WIN32
|
|
|
+ if (scale == "auto")
|
|
|
+ scale = "none";
|
|
|
+#endif
|
|
|
if (scale.isEmpty() || scale == "auto")
|
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
- else
|
|
|
+ else if (scale != "none")
|
|
|
qputenv("QT_SCALE_FACTOR", scale.toUtf8());
|
|
|
|
|
|
QApplication app(newArgc, newArgv);
|