LAB: Move timing functions to the utility class
This commit is contained in:
parent
0c0b2da235
commit
7bb45a8eaa
9 changed files with 110 additions and 148 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue