[Scummvm-git-logs] scummvm master -> 239dee1c8d7b669e5eff351ba5980f4dc52f1712
whiterandrek
noreply at scummvm.org
Sat Feb 5 21:45:28 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
239dee1c8d PETKA: redraw screen after video play
Commit: 239dee1c8d7b669e5eff351ba5980f4dc52f1712
https://github.com/scummvm/scummvm/commit/239dee1c8d7b669e5eff351ba5980f4dc52f1712
Author: Andrei Prykhodko (whiterandrek at gmail.com)
Date: 2022-02-05T23:45:21+02:00
Commit Message:
PETKA: redraw screen after video play
bug #12999
Changed paths:
engines/petka/petka.cpp
diff --git a/engines/petka/petka.cpp b/engines/petka/petka.cpp
index dfef3bc52a9..a9bceeb8b98 100644
--- a/engines/petka/petka.cpp
+++ b/engines/petka/petka.cpp
@@ -174,8 +174,7 @@ void PetkaEngine::playVideo(Common::SeekableReadStream *stream) {
_videoDec.reset(new Video::AVIDecoder);
if (!_videoDec->loadStream(stream)) {
- _videoDec.reset();
- return;
+ goto end;
}
_videoDec->start();
@@ -189,8 +188,7 @@ void PetkaEngine::playVideo(Common::SeekableReadStream *stream) {
case Common::EVENT_LBUTTONDOWN:
case Common::EVENT_RBUTTONDOWN:
case Common::EVENT_KEYDOWN:
- _videoDec.reset();
- return;
+ goto end;
default:
break;
}
@@ -208,6 +206,8 @@ void PetkaEngine::playVideo(Common::SeekableReadStream *stream) {
_system->delayMillis(15);
}
+end:
+ _vsys->makeAllDirty();
_videoDec.reset();
}
More information about the Scummvm-git-logs
mailing list