mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +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();
|
Score *score = movie->getScore();
|
||||||
if (movie->_videoPlayback) {
|
if (movie->_videoPlayback) {
|
||||||
movie->getScore()->renderFrame(movie->getScore()->getCurrentFrame());
|
movie->getScore()->renderFrame(movie->getScore()->getCurrentFrame(), kRenderNoWindowRender);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (movie->getWindow()->render())
|
if (movie->getWindow()->render())
|
||||||
|
@ -452,7 +452,8 @@ void Score::renderFrame(uint16 frameId, RenderMode mode) {
|
|||||||
g_director->setPalette(resolvePaletteId(currentPalette));
|
g_director->setPalette(resolvePaletteId(currentPalette));
|
||||||
}
|
}
|
||||||
|
|
||||||
_window->render();
|
if (mode != kRenderNoWindowRender)
|
||||||
|
_window->render();
|
||||||
|
|
||||||
if (_frames[frameId]->_sound1 || _frames[frameId]->_sound2)
|
if (_frames[frameId]->_sound1 || _frames[frameId]->_sound2)
|
||||||
playSoundChannel(frameId);
|
playSoundChannel(frameId);
|
||||||
|
@ -57,7 +57,8 @@ enum RenderMode {
|
|||||||
kRenderModeNormal,
|
kRenderModeNormal,
|
||||||
kRenderForceUpdate,
|
kRenderForceUpdate,
|
||||||
kRenderUpdateStageOnly,
|
kRenderUpdateStageOnly,
|
||||||
kRenderNoUnrender
|
kRenderNoUnrender,
|
||||||
|
kRenderNoWindowRender
|
||||||
};
|
};
|
||||||
|
|
||||||
class Score {
|
class Score {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user