From efdd1a0213a6fdd7e64d648afd6768dc394fd41c Mon Sep 17 00:00:00 2001 From: kelteseth Date: Thu, 6 Apr 2017 23:18:13 +0200 Subject: [PATCH] Fix video starting in fullscreen --- src/screenplay.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screenplay.cpp b/src/screenplay.cpp index 0d1bd8ea..1189b819 100644 --- a/src/screenplay.cpp +++ b/src/screenplay.cpp @@ -55,7 +55,7 @@ ScreenPlay::ScreenPlay(int width, int height) this->setFlags(flags | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint); this->show(); - ShowWindow(hwnd, SW_SHOWDEFAULT); + //ShowWindow(hwnd, SW_SHOWDEFAULT); // We do not want to display anything initially setVisible(false); @@ -82,9 +82,9 @@ void ScreenPlay::showQQuickView(int width, int height) void ScreenPlay::setVisible(bool visible) { if (visible) - ShowWindow(worker_hwnd, SW_SHOWDEFAULT); + ShowWindow(hwnd, SW_SHOWDEFAULT); else - ShowWindow(worker_hwnd, SW_HIDE); + ShowWindow(hwnd, SW_HIDE); } QQmlContext *ScreenPlay::context() const