aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.cpp
diff options
context:
space:
mode:
authorSven Hesse2008-02-29 22:24:52 +0000
committerSven Hesse2008-02-29 22:24:52 +0000
commit5878f701c103cf792db6b5454688dca0c3379477 (patch)
tree23e518f81aeebe6ba2c34ba7aaffd8e7bed38cf8 /engines/gob/util.cpp
parenta47e5aa5f57055bb399382f7a30811f0a8629f92 (diff)
downloadscummvm-rg350-5878f701c103cf792db6b5454688dca0c3379477.tar.gz
scummvm-rg350-5878f701c103cf792db6b5454688dca0c3379477.tar.bz2
scummvm-rg350-5878f701c103cf792db6b5454688dca0c3379477.zip
Fixed some Lost in Time bugs:
- CD cutscenes are drawn correctly know - CD cutscenes are (more) correctly synced now - The cursor doesn't flicker anymore when a video is played in the background svn-id: r31014
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r--engines/gob/util.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index 93ec42c7ac..6ca694c11a 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -42,6 +42,7 @@ Util::Util(GobEngine *vm) : _vm(vm) {
_keyBufferHead = 0;
_keyBufferTail = 0;
_fastMode = 0;
+ _frameRate = 12;
}
uint32 Util::getTimeKey(void) {
@@ -297,10 +298,15 @@ void Util::clearPalette(void) {
_vm->_video->setPalElem(i, 0, 0, 0, 0, _vm->_global->_videoMode);
}
+int16 Util::getFrameRate() {
+ return _frameRate;
+}
+
void Util::setFrameRate(int16 rate) {
if (rate == 0)
rate = 1;
+ _frameRate = rate;
_vm->_global->_frameWaitTime = 1000 / rate;
_vm->_global->_startFrameTime = getTimeKey();
}