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)
mVideo->onHide();
else
else if (mVideoPlaying && !mVideo->isVideoPaused())
mVideo->onShow();
BasicGameListView::update(deltaTime);

View file

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

View file

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