ソースを参照

Fix wrong scale when running in fullscreen on Windows

Tobias Hieta 9 年 前
コミット
20ba10bf35
1 ファイル変更7 行追加7 行削除
  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();
 }