diff options
author | Filippos Karapetis | 2015-12-13 04:12:29 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:01 +0100 |
commit | 1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9 (patch) | |
tree | 295ceab7ffc73cd3fe179ec3978b52134d0cc096 /engines/lab/intro.cpp | |
parent | a01f0689693363bf7a46ef36c9e3885670fb657b (diff) | |
download | scummvm-rg350-1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9.tar.gz scummvm-rg350-1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9.tar.bz2 scummvm-rg350-1b0a7db0b604b5dddaa0e01cbafe2f3fdc760ce9.zip |
LAB: Get rid of getTime(), readBlock() and getRandom()
Also, simplify some time-related functions
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r-- | engines/lab/intro.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp index 633691c820..0165116b00 100644 --- a/engines/lab/intro.cpp +++ b/engines/lab/intro.cpp @@ -132,7 +132,9 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) { return; } - _vm->_utils->getTime(&lastSecs, &lastMicros); + uint32 t = g_system->getMillis(); + lastSecs = t / 1000; + lastMicros = t % 1000; } msg = _vm->getMsg(); @@ -140,7 +142,10 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) { if (msg == NULL) { _vm->_music->updateMusic(); _vm->_anim->diffNextFrame(); - _vm->_utils->getTime(&secs, µs); + + uint32 t = g_system->getMillis(); + secs = t / 1000; + micros = t % 1000; _vm->_utils->anyTimeDiff(lastSecs, lastMicros, secs, micros, &secs, µs); if (secs > timeDelay) { |