浏览代码

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();
 }