mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 17:45: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)
|
if (!mVideoPlaying)
|
||||||
mVideo->onHide();
|
mVideo->onHide();
|
||||||
else
|
else if (mVideoPlaying && !mVideo->isVideoPaused())
|
||||||
mVideo->onShow();
|
mVideo->onShow();
|
||||||
|
|
||||||
BasicGameListView::update(deltaTime);
|
BasicGameListView::update(deltaTime);
|
||||||
|
|
|
@ -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; };
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue