GROOVIE: More bugfixes for V2 puzzle overlay videos

This commit is contained in:
Filippos Karapetis
2014-11-04 12:40:08 +02:00
parent d8e650b4cb
commit c9a60233d5
+7 -1
View File
@@ -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;
}