mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Fixed an issue where returning from a game when running in the background ignored the video element delay property for the first playback
This commit is contained in:
parent
6a1d6e2844
commit
f0241495f6
|
@ -1230,6 +1230,7 @@ bool ViewController::input(InputConfig* config, Input input)
|
|||
mWindow->setAllowTextScrolling(true);
|
||||
mWindow->setAllowFileAnimation(true);
|
||||
mWindow->setLaunchedGame(false);
|
||||
resetViewVideosTimer();
|
||||
// Filter out the "a" button so the game is not restarted if there was such a button press
|
||||
// queued when leaving the game.
|
||||
if (config->isMappedTo("a", input) && input.value != 0)
|
||||
|
|
|
@ -89,7 +89,6 @@ public:
|
|||
void stopViewVideos() override { mCurrentView->stopViewVideos(); }
|
||||
void pauseViewVideos() override { mCurrentView->pauseViewVideos(); }
|
||||
void muteViewVideos() override { mCurrentView->muteViewVideos(); }
|
||||
// Needed on Android to reset the static image delay timer on activity resume.
|
||||
void resetViewVideosTimer() override
|
||||
{
|
||||
if (mCurrentView != nullptr)
|
||||
|
|
Loading…
Reference in a new issue