Fixed a regression where the video would not pause when launching a game.

This commit is contained in:
Leon Styhre 2020-10-10 15:46:01 +02:00
parent 109a8a0b14
commit 5cd83899f0
3 changed files with 3 additions and 1 deletions

View file

@ -453,7 +453,7 @@ void VideoGameListView::update(int deltaTime)
{ {
if (!mVideoPlaying) if (!mVideoPlaying)
mVideo->onHide(); mVideo->onHide();
else else if (mVideoPlaying && !mVideo->isVideoPaused())
mVideo->onShow(); mVideo->onShow();
BasicGameListView::update(deltaTime); BasicGameListView::update(deltaTime);

View file

@ -168,6 +168,7 @@ public:
virtual void onHide(); virtual void onHide();
virtual void onPauseVideo(); virtual void onPauseVideo();
virtual void onUnpauseVideo(); virtual void onUnpauseVideo();
virtual bool isVideoPaused() { return false; };
virtual void setRenderView(bool status) { mRenderView = status; } virtual void setRenderView(bool status) { mRenderView = status; }
virtual bool getRenderView() { return mRenderView; }; virtual bool getRenderView() { return mRenderView; };

View file

@ -49,6 +49,7 @@ public:
virtual void onHide() override; virtual void onHide() override;
virtual void onPauseVideo() override; virtual void onPauseVideo() override;
virtual void onUnpauseVideo() override; virtual void onUnpauseVideo() override;
virtual bool isVideoPaused() override { return mPause; }
virtual void onScreenSaverActivate() override; virtual void onScreenSaverActivate() override;
virtual void onScreenSaverDeactivate() override; virtual void onScreenSaverDeactivate() override;
virtual void onGameLaunchedActivate() override; virtual void onGameLaunchedActivate() override;