Przeglądaj źródła

Fix wrong scale when running in fullscreen on Windows

Tobias Hieta 9 lat temu
rodzic
commit
20ba10bf35
1 zmienionych plików z 7 dodań i 7 usunięć
  1. 7 7
      src/ui/KonvergoWindow.cpp

+ 7 - 7
src/ui/KonvergoWindow.cpp

@@ -121,19 +121,19 @@ KonvergoWindow::KonvergoWindow(QWindow* parent) : QQuickWindow(parent), m_debugL
 
   connect(qApp, &QCoreApplication::aboutToQuit, this, &KonvergoWindow::saveGeometry);
 
-#ifdef Q_OS_MAC
+  if (!SystemComponent::Get().isOpenELEC())
+  {
     // this is such a hack. But I could not get it to enter into fullscreen
     // mode if I didn't trigger this after a while.
     //
     QTimer::singleShot(500, [=]() {
         updateFullscreenState();
     });
-#else
-    if (SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "fakefullscreen").toBool())
-      updateFullscreenState();
-    else if (SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "fullscreen").toBool() || SystemComponent::Get().isOpenELEC())
-      setWindowState(Qt::WindowFullScreen);
-#endif
+  }
+  else
+  {
+    setWindowState(Qt::WindowFullScreen);
+  }
 
   emit enableVideoWindowSignal();
 }