DIRECTOR: LINGO: Make sure video is rendered on 'updateStage'

This commit is contained in:
Eugene Sandulenko 2020-08-25 10:43:09 +02:00
parent ffd67acce8
commit 92bd514902
3 changed files with 5 additions and 3 deletions

View File

@ -2081,7 +2081,7 @@ void LB::b_updateStage(int nargs) {
Score *score = movie->getScore();
if (movie->_videoPlayback) {
movie->getScore()->renderFrame(movie->getScore()->getCurrentFrame());
movie->getScore()->renderFrame(movie->getScore()->getCurrentFrame(), kRenderNoWindowRender);
}
if (movie->getWindow()->render())

View File

@ -452,7 +452,8 @@ void Score::renderFrame(uint16 frameId, RenderMode mode) {
g_director->setPalette(resolvePaletteId(currentPalette));
}
_window->render();
if (mode != kRenderNoWindowRender)
_window->render();
if (_frames[frameId]->_sound1 || _frames[frameId]->_sound2)
playSoundChannel(frameId);

View File

@ -57,7 +57,8 @@ enum RenderMode {
kRenderModeNormal,
kRenderForceUpdate,
kRenderUpdateStageOnly,
kRenderNoUnrender
kRenderNoUnrender,
kRenderNoWindowRender
};
class Score {