diff options
-rw-r--r-- | backends/wince/wince-sdl.cpp | 6 | ||||
-rw-r--r-- | scumm/smush/smush_player.cpp | 8 | ||||
-rw-r--r-- | scumm/smush/smush_player.h | 2 |
3 files changed, 15 insertions, 1 deletions
diff --git a/backends/wince/wince-sdl.cpp b/backends/wince/wince-sdl.cpp index ab9ed5bd62..5ed7362206 100644 --- a/backends/wince/wince-sdl.cpp +++ b/backends/wince/wince-sdl.cpp @@ -728,6 +728,12 @@ void OSystem_WINCE3::update_game_settings() { if (_isSmartphone) panel->setVisible(false); + + // Set Smush Force Redraw rate for Full Throttle + if (!ConfMan.hasKey("Smush_force_redraw")) { + ConfMan.set("Smush_force_redraw", 30); + ConfMan.flushToDisk(); + } } get_sample_rate(); diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp index bf67ee2ed0..e3bd305ea4 100644 --- a/scumm/smush/smush_player.cpp +++ b/scumm/smush/smush_player.cpp @@ -220,6 +220,7 @@ void SmushPlayer::timerCallback(void *refCon) { ((SmushPlayer *)refCon)->parseNextFrame(); #ifdef _WIN32_WCE ((SmushPlayer *)refCon)->_inTimer = true; + ((SmushPlayer *)refCon)->_inTimerCount++; #endif } @@ -254,6 +255,8 @@ SmushPlayer::SmushPlayer(ScummEngine_v6 *scumm, int speed) { _skipPalette = false; #ifdef _WIN32_WCE _inTimer = false; + _inTimerCount = 0; + _inTimerCountRedraw = ConfMan.getInt("Smush_force_redraw"); #endif } @@ -948,8 +951,10 @@ void SmushPlayer::handleFrame(Chunk &b) { end_time = _vm->_system->getMillis(); #ifdef _WIN32_WCE - if (!_inTimer) + if (!_inTimer || _inTimerCount == _inTimerCountRedraw) { updateScreen(); + _inTimerCount = 0; + } #else updateScreen(); #endif @@ -1249,6 +1254,7 @@ void SmushPlayer::play(const char *filename, int32 offset, int32 startFrame) { _updateNeeded = false; #ifdef _WIN32_WCE _inTimer = false; + _inTimerCount = 0; #endif end_time = _vm->_system->getMillis(); diff --git a/scumm/smush/smush_player.h b/scumm/smush/smush_player.h index 1b3a656ef1..8cd06a2f44 100644 --- a/scumm/smush/smush_player.h +++ b/scumm/smush/smush_player.h @@ -78,6 +78,8 @@ private: bool _skipPalette; #ifdef _WIN32_WCE bool _inTimer; + int16 _inTimerCount; + int16 _inTimerCountRedraw; #endif Common::Mutex _mutex; |