Ver código fonte

UI: Only scale HiDPI on QT 5.6+

Colin Edwards 9 anos atrás
pai
commit
404258f41a
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      UI/obs-app.cpp

+ 3 - 0
UI/obs-app.cpp

@@ -29,6 +29,7 @@
 #include <obs-config.h>
 #include <obs.hpp>
 
+#include <QtGlobal>
 #include <QGuiApplication>
 #include <QProxyStyle>
 #include <QScreen>
@@ -1311,7 +1312,9 @@ static int run_program(fstream &logFile, int argc, char *argv[])
 
 	QCoreApplication::addLibraryPath(".");
 
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
 	QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
 
 	OBSApp program(argc, argv, profilerNameStore.get());
 	try {