aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorFilippos Karapetis2016-01-14 23:40:29 +0200
committerFilippos Karapetis2016-01-14 23:41:36 +0200
commitad1aac46ceda6e9c01d3f71994fcdd9b4080d96d (patch)
tree131510bc32854112144a2fcf9a8453911548e6cd /engines/lab
parent924d43b7aac241b9205af640b0a6788e4abc99bf (diff)
downloadscummvm-rg350-ad1aac46ceda6e9c01d3f71994fcdd9b4080d96d.tar.gz
scummvm-rg350-ad1aac46ceda6e9c01d3f71994fcdd9b4080d96d.tar.bz2
scummvm-rg350-ad1aac46ceda6e9c01d3f71994fcdd9b4080d96d.zip
LAB: Remove superfluous calls to updateEvents()
These are leftovers, as updateEvents() was called to fill in the music buffer
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/dispman.cpp1
-rw-r--r--engines/lab/resource.cpp5
2 files changed, 0 insertions, 6 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp
index 674549a9c4..49ed17b069 100644
--- a/engines/lab/dispman.cpp
+++ b/engines/lab/dispman.cpp
@@ -87,7 +87,6 @@ void DisplayMan::loadBackPict(const Common::String fileName, uint16 *highPal) {
void DisplayMan::readPict(const Common::String filename, bool playOnce, bool onlyDiffData, byte *memoryBuffer) {
_vm->_anim->stopDiff();
loadPict(filename);
- _vm->updateEvents();
_vm->_anim->setOutputBuffer(memoryBuffer);
_vm->_anim->readDiff(_curBitmap, playOnce, onlyDiffData);
}
diff --git a/engines/lab/resource.cpp b/engines/lab/resource.cpp
index 23de58b1f7..f16fd533ca 100644
--- a/engines/lab/resource.cpp
+++ b/engines/lab/resource.cpp
@@ -59,8 +59,6 @@ TextFont *Resource::getFont(const Common::String fileName) {
if (fileSize <= headerSize)
return nullptr;
- _vm->updateEvents();
-
TextFont *textfont = new TextFont();
textfont->_dataLength = fileSize - headerSize;
textfont->_height = dataFile->readUint16LE();
@@ -77,8 +75,6 @@ TextFont *Resource::getFont(const Common::String fileName) {
Common::String Resource::getText(const Common::String fileName) {
Common::File *dataFile = openDataFile(fileName);
- _vm->updateEvents();
-
uint32 count = dataFile->size();
byte *buffer = new byte[count];
byte *text = buffer;
@@ -143,7 +139,6 @@ void Resource::readViews(uint16 roomNum) {
readView(dataFile, curRoom->_view[kDirectionWest]);
readRule(dataFile, curRoom->_rules);
- _vm->updateEvents();
delete dataFile;
}