diff options
author | Strangerke | 2015-12-12 19:38:00 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:01 +0100 |
commit | 7bb45a8eaaf663cca9d0765d84b38967c3cc3275 (patch) | |
tree | e044d20af588b81a96776004bfc3bbb037086ed0 /engines/lab/intro.cpp | |
parent | 0c0b2da235bfbbc3a11ef9677137d5a77f5b35a2 (diff) | |
download | scummvm-rg350-7bb45a8eaaf663cca9d0765d84b38967c3cc3275.tar.gz scummvm-rg350-7bb45a8eaaf663cca9d0765d84b38967c3cc3275.tar.bz2 scummvm-rg350-7bb45a8eaaf663cca9d0765d84b38967c3cc3275.zip |
LAB: Move timing functions to the utility class
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r-- | engines/lab/intro.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp index d0406bc192..633691c820 100644 --- a/engines/lab/intro.cpp +++ b/engines/lab/intro.cpp @@ -36,6 +36,7 @@ #include "lab/intro.h" #include "lab/music.h" #include "lab/resource.h" +#include "lab/utils.h" namespace Lab { @@ -131,7 +132,7 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) { return; } - _vm->getTime(&lastSecs, &lastMicros); + _vm->_utils->getTime(&lastSecs, &lastMicros); } msg = _vm->getMsg(); @@ -139,8 +140,8 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) { if (msg == NULL) { _vm->_music->updateMusic(); _vm->_anim->diffNextFrame(); - _vm->getTime(&secs, µs); - _vm->anyTimeDiff(lastSecs, lastMicros, secs, micros, &secs, µs); + _vm->_utils->getTime(&secs, µs); + _vm->_utils->anyTimeDiff(lastSecs, lastMicros, secs, micros, &secs, µs); if (secs > timeDelay) { if (end) { |