mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed a regression where the video would not pause when launching a game.
This commit is contained in:
parent
109a8a0b14
commit
5cd83899f0
|
@ -453,7 +453,7 @@ void VideoGameListView::update(int deltaTime)
|
|||
{
|
||||
if (!mVideoPlaying)
|
||||
mVideo->onHide();
|
||||
else
|
||||
else if (mVideoPlaying && !mVideo->isVideoPaused())
|
||||
mVideo->onShow();
|
||||
|
||||
BasicGameListView::update(deltaTime);
|
||||
|
|
|
@ -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; };
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue