Explorar o código

Fixes for HiDPI on Linux

Don't set QT_AUTO_SCREEN_SCALE_FACTOR if the user provides
his own QT_SCALE_FACTOR environment.
Tobias Hieta %!s(int64=8) %!d(string=hai) anos
pai
achega
4df54f05c6
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/main.cpp

+ 2 - 1
src/main.cpp

@@ -39,7 +39,8 @@ static void preinitQt()
   QCoreApplication::setOrganizationDomain("plex.tv");
 
 #ifdef Q_OS_LINUX
-  QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+  if (qgetenv("QT_SCALE_FACTOR") == nullptr)
+    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
 #endif
 
 #ifdef Q_OS_WIN32