mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GROOVIE: More bugfixes for V2 puzzle overlay videos
This commit is contained in:
@@ -169,7 +169,9 @@ bool ROQPlayer::playFrameInternal() {
|
||||
}
|
||||
|
||||
// Wait until the current frame can be shown
|
||||
waitFrame();
|
||||
// Don't wait if we're just showing one frame
|
||||
if (!(_alpha && !_flagTwo))
|
||||
waitFrame();
|
||||
|
||||
if (_dirty) {
|
||||
// Update the screen
|
||||
@@ -177,6 +179,10 @@ bool ROQPlayer::playFrameInternal() {
|
||||
_syst->copyRectToScreen(src, _bg->pitch, 0, (_syst->getHeight() - _bg->h) / 2, _bg->w, _bg->h);
|
||||
_syst->updateScreen();
|
||||
|
||||
// For overlay videos, set the background buffer when the video ends
|
||||
if (_alpha && (!_flagTwo || (_flagTwo && _file->eos())))
|
||||
_bg->copyFrom(*_fg);
|
||||
|
||||
// Clear the dirty flag
|
||||
_dirty = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user