mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 18:52:30 +01:00
Fix video starting in fullscreen
This commit is contained in:
parent
26d40f4e7d
commit
efdd1a0213
@ -55,7 +55,7 @@ ScreenPlay::ScreenPlay(int width, int height)
|
|||||||
this->setFlags(flags | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint);
|
this->setFlags(flags | Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint);
|
||||||
this->show();
|
this->show();
|
||||||
|
|
||||||
ShowWindow(hwnd, SW_SHOWDEFAULT);
|
//ShowWindow(hwnd, SW_SHOWDEFAULT);
|
||||||
|
|
||||||
// We do not want to display anything initially
|
// We do not want to display anything initially
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
@ -82,9 +82,9 @@ void ScreenPlay::showQQuickView(int width, int height)
|
|||||||
void ScreenPlay::setVisible(bool visible)
|
void ScreenPlay::setVisible(bool visible)
|
||||||
{
|
{
|
||||||
if (visible)
|
if (visible)
|
||||||
ShowWindow(worker_hwnd, SW_SHOWDEFAULT);
|
ShowWindow(hwnd, SW_SHOWDEFAULT);
|
||||||
else
|
else
|
||||||
ShowWindow(worker_hwnd, SW_HIDE);
|
ShowWindow(hwnd, SW_HIDE);
|
||||||
}
|
}
|
||||||
|
|
||||||
QQmlContext *ScreenPlay::context() const
|
QQmlContext *ScreenPlay::context() const
|
||||||
|
Loading…
Reference in New Issue
Block a user