Browse Source

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 8 năm trước cách đây
mục cha
commit
4df54f05c6
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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