1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 10:42:29 +01:00

Fix video starting in fullscreen

This commit is contained in:
kelteseth 2017-04-06 23:18:13 +02:00
parent 26d40f4e7d
commit efdd1a0213

View File

@ -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