diff options
author | Paweł Kołodziejski | 2002-09-15 05:38:04 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-09-15 05:38:04 +0000 |
commit | 2f91c18b22d584dbcaba9f86396bb322050f5344 (patch) | |
tree | 7bb540018e14a3caef76b6da88ed22fae2fa4c08 /scumm/smush | |
parent | fb91bdd21ddfb3cbb955f1b9749bb21fcedfbd0e (diff) | |
download | scummvm-rg350-2f91c18b22d584dbcaba9f86396bb322050f5344.tar.gz scummvm-rg350-2f91c18b22d584dbcaba9f86396bb322050f5344.tar.bz2 scummvm-rg350-2f91c18b22d584dbcaba9f86396bb322050f5344.zip |
speed changes to play smush movies
svn-id: r4941
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/scumm_renderer.cpp | 7 | ||||
-rw-r--r-- | scumm/smush/scumm_renderer.h | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/scumm/smush/scumm_renderer.cpp b/scumm/smush/scumm_renderer.cpp index cbb4ed31f5..e6b9454801 100644 --- a/scumm/smush/scumm_renderer.cpp +++ b/scumm/smush/scumm_renderer.cpp @@ -188,7 +188,10 @@ bool scumm_mixer::stop() { return true; } -ScummRenderer::ScummRenderer(Scumm * scumm) : _scumm(scumm), _smixer(0) { +ScummRenderer::ScummRenderer(Scumm * scumm, uint32 speed) : + _scumm(scumm), + _smixer(0), + _insaneSpeed(speed) { } static ScummRenderer * s_renderer; @@ -203,7 +206,7 @@ Mixer * ScummRenderer::getMixer() { _smixer = new scumm_mixer(_scumm->_mixer); if(!_smixer) error("unable to allocate a smush mixer"); s_renderer = this; - _scumm->_timer->installProcedure(&smush_handler, 83); + _scumm->_timer->installProcedure(&smush_handler, _insaneSpeed); } return _smixer; } diff --git a/scumm/smush/scumm_renderer.h b/scumm/smush/scumm_renderer.h index 31dbd8af6e..d77e86da0a 100644 --- a/scumm/smush/scumm_renderer.h +++ b/scumm/smush/scumm_renderer.h @@ -44,9 +44,10 @@ class ScummRenderer : public BaseRenderer { private: Scumm * _scumm; scumm_mixer * _smixer; + uint32 _insaneSpeed; volatile bool _wait; public: - ScummRenderer(Scumm * scumm); + ScummRenderer(Scumm * scumm, uint32 speed); virtual ~ScummRenderer(); virtual bool wait(int32 ms); bool update(); |