mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
DIRECTOR: LINGO: Make sure video is rendered on 'updateStage'
This commit is contained in:
parent
ffd67acce8
commit
92bd514902
@ -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())
|
||||
|
@ -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);
|
||||
|
@ -57,7 +57,8 @@ enum RenderMode {
|
||||
kRenderModeNormal,
|
||||
kRenderForceUpdate,
|
||||
kRenderUpdateStageOnly,
|
||||
kRenderNoUnrender
|
||||
kRenderNoUnrender,
|
||||
kRenderNoWindowRender
|
||||
};
|
||||
|
||||
class Score {
|
||||
|
Loading…
x
Reference in New Issue
Block a user