diff options
Diffstat (limited to 'scumm/smush/smush_player.cpp')
-rw-r--r-- | scumm/smush/smush_player.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp index 3852ebbb59..3e5e097c0a 100644 --- a/scumm/smush/smush_player.cpp +++ b/scumm/smush/smush_player.cpp @@ -216,6 +216,9 @@ static StringResource *getStrings(const char *file, bool is_encoded) { void SmushPlayer::timerCallback(void *refCon) { ((SmushPlayer *)refCon)->parseNextFrame(); +#ifdef _WIN32_WCE + ((SmushPlayer *)refCon)->_inTimer = true; +#endif } SmushPlayer::SmushPlayer(ScummEngine_v6 *scumm, int speed) { @@ -247,6 +250,9 @@ SmushPlayer::SmushPlayer(ScummEngine_v6 *scumm, int speed) { _insanity = false; _middleAudio = false; _skipPalette = false; +#ifdef _WIN32_WCE + _inTimer = false; +#endif } SmushPlayer::~SmushPlayer() { @@ -931,7 +937,12 @@ void SmushPlayer::handleFrame(Chunk &b) { end_time = _vm->_system->getMillis(); +#ifdef _WIN32_WCE + if (!_inTimer) + updateScreen(); +#else updateScreen(); +#endif _smixer->handleFrame(); debugC(DEBUG_SMUSH, "Smush stats: FRME( %03d ), Limit(%d)", end_time - start_time, _speed / 1000); @@ -1209,6 +1220,9 @@ void SmushPlayer::play(const char *filename, int32 offset, int32 startFrame) { start_time = _vm->_system->getMillis(); _vm->_system->updateScreen(); _updateNeeded = false; +#ifdef _WIN32_WCE + _inTimer = false; +#endif end_time = _vm->_system->getMillis(); |