diff options
Diffstat (limited to 'engines/lab')
-rw-r--r-- | engines/lab/dispman.cpp | 2 | ||||
-rw-r--r-- | engines/lab/dispman.h | 2 | ||||
-rw-r--r-- | engines/lab/engine.cpp | 14 | ||||
-rw-r--r-- | engines/lab/processroom.cpp | 4 | ||||
-rw-r--r-- | engines/lab/savegame.cpp | 2 | ||||
-rw-r--r-- | engines/lab/special.cpp | 8 | ||||
-rw-r--r-- | engines/lab/tilepuzzle.cpp | 8 | ||||
-rw-r--r-- | engines/lab/tilepuzzle.h | 2 |
8 files changed, 21 insertions, 21 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp index d66d1a99cd..9dbaf8d374 100644 --- a/engines/lab/dispman.cpp +++ b/engines/lab/dispman.cpp @@ -78,7 +78,7 @@ void DisplayMan::loadPict(const Common::String filename) { void DisplayMan::loadBackPict(const Common::String fileName, uint16 *highPal) { _fadePalette = highPal; _vm->_anim->_noPalChange = true; - readPict(fileName, true); + readPict(fileName); for (uint16 i = 0; i < 16; i++) { highPal[i] = ((_vm->_anim->_diffPalette[i * 3] >> 2) << 8) + diff --git a/engines/lab/dispman.h b/engines/lab/dispman.h index 3ada808e95..1ca58874ca 100644 --- a/engines/lab/dispman.h +++ b/engines/lab/dispman.h @@ -85,7 +85,7 @@ public: /** * Reads in a picture into the display bitmap. */ - void readPict(Common::String filename, bool playOnce, bool onlyDiffData = false, byte *memoryBuffer = nullptr, uint16 maxHeight = 0); + void readPict(Common::String filename, bool playOnce = true, bool onlyDiffData = false, byte *memoryBuffer = nullptr, uint16 maxHeight = 0); void freePict(); /** diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index cefc3579ea..9ded7e283b 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -331,7 +331,7 @@ bool LabEngine::doUse(uint16 curInv) { _anim->_doBlack = false; _anim->_waitForEffect = true; - _graphics->readPict("Music:Click", true); + _graphics->readPict("Music:Click"); _anim->_waitForEffect = false; _anim->_doBlack = false; @@ -461,7 +461,7 @@ void LabEngine::mainGameLoop() { switch (_closeDataPtr->_closeUpType) { case SPECIALLOCK: if (_mainDisplay) - _tilePuzzle->showCombination(_curFileName.c_str()); + _tilePuzzle->showCombination(_curFileName); break; case SPECIALBRICK: case SPECIALBRICKNOMOUSE: @@ -469,11 +469,11 @@ void LabEngine::mainGameLoop() { _tilePuzzle->showTile(_curFileName, (_closeDataPtr->_closeUpType == SPECIALBRICKNOMOUSE)); break; default: - _graphics->readPict(_curFileName.c_str(), false); + _graphics->readPict(_curFileName, false); break; } } else - _graphics->readPict(_curFileName.c_str(), false); + _graphics->readPict(_curFileName, false); drawRoomMessage(curInv, _closeDataPtr); forceDraw = false; @@ -553,15 +553,15 @@ void LabEngine::mainGameLoop() { void LabEngine::showLab2Teaser() { _graphics->blackAllScreen(); - _graphics->readPict("P:End/L2In.1", true); + _graphics->readPict("P:End/L2In.1"); for (uint16 i = 0; i < 120; i++) { _music->updateMusic(); waitTOF(); } - _graphics->readPict("P:End/L2In.9", true); - _graphics->readPict("P:End/Lost", true); + _graphics->readPict("P:End/L2In.9"); + _graphics->readPict("P:End/Lost"); while (!_event->getMsg() && !shouldQuit()) { _music->updateMusic(); diff --git a/engines/lab/processroom.cpp b/engines/lab/processroom.cpp index d3d37bee93..d467be9894 100644 --- a/engines/lab/processroom.cpp +++ b/engines/lab/processroom.cpp @@ -291,7 +291,7 @@ void LabEngine::doActions(Action *actionList, CloseDataPtr *closePtrList) { if (test != _curFileName) { _curFileName = test; - _graphics->readPict(_curFileName, true); + _graphics->readPict(_curFileName); } } break; @@ -339,7 +339,7 @@ void LabEngine::doActions(Action *actionList, CloseDataPtr *closePtrList) { if (actionList->_param1 & 0x8000) { // This is a Wyrmkeep Windows trial version, thus stop at this // point, since we can't check for game payment status - _graphics->readPict(getPictName(closePtrList), true); + _graphics->readPict(getPictName(closePtrList)); actionList = nullptr; GUI::MessageDialog trialMessage("This is the end of the trial version. You can play the full game using the original interpreter from Wyrmkeep"); trialMessage.runModal(); diff --git a/engines/lab/savegame.cpp b/engines/lab/savegame.cpp index 26ced8d2f2..2ea481d3c2 100644 --- a/engines/lab/savegame.cpp +++ b/engines/lab/savegame.cpp @@ -132,7 +132,7 @@ bool LabEngine::saveGame(int slot, Common::String desc) { // Load scene pic CloseDataPtr closePtr = nullptr; - _graphics->readPict(getPictName(&closePtr), true); + _graphics->readPict(getPictName(&closePtr)); writeSaveGameHeader(file, desc); file->writeUint16LE(_roomNum); diff --git a/engines/lab/special.cpp b/engines/lab/special.cpp index 3f5a3d09bf..ddc7ea49e4 100644 --- a/engines/lab/special.cpp +++ b/engines/lab/special.cpp @@ -448,10 +448,10 @@ void LabEngine::doMonitor(Common::String background, Common::String textfile, bo _monitorTextFilename = textfile; _graphics->blackAllScreen(); - _graphics->readPict("P:Mon/Monitor.1", true); - _graphics->readPict("P:Mon/NWD1", true); - _graphics->readPict("P:Mon/NWD2", true); - _graphics->readPict("P:Mon/NWD3", true); + _graphics->readPict("P:Mon/Monitor.1"); + _graphics->readPict("P:Mon/NWD1"); + _graphics->readPict("P:Mon/NWD2"); + _graphics->readPict("P:Mon/NWD3"); _graphics->blackAllScreen(); _monitorPage = 0; diff --git a/engines/lab/tilepuzzle.cpp b/engines/lab/tilepuzzle.cpp index cb93f25ea6..a22f51f747 100644 --- a/engines/lab/tilepuzzle.cpp +++ b/engines/lab/tilepuzzle.cpp @@ -175,7 +175,7 @@ void TilePuzzle::changeTile(uint16 col, uint16 row) { // unlocked combination _vm->_conditions->inclElement(BRICKOPEN); _vm->_anim->_doBlack = true; - _vm->_graphics->readPict("p:Up/BDOpen", true); + _vm->_graphics->readPict("p:Up/BDOpen"); } } } @@ -254,7 +254,7 @@ void TilePuzzle::doTile(bool showsolution) { void TilePuzzle::showTile(const Common::String filename, bool showSolution) { _vm->_anim->_doBlack = true; _vm->_anim->_noPalChange = true; - _vm->_graphics->readPict(filename, true); + _vm->_graphics->readPict(filename); _vm->_anim->_noPalChange = false; _vm->_graphics->blackScreen(); @@ -379,10 +379,10 @@ void TilePuzzle::doCombination() { /** * Reads in a backdrop picture. */ -void TilePuzzle::showCombination(const char *filename) { +void TilePuzzle::showCombination(const Common::String filename) { _vm->_anim->_doBlack = true; _vm->_anim->_noPalChange = true; - _vm->_graphics->readPict(filename, true); + _vm->_graphics->readPict(filename); _vm->_anim->_noPalChange = false; _vm->_graphics->blackScreen(); diff --git a/engines/lab/tilepuzzle.h b/engines/lab/tilepuzzle.h index da159beeff..65870b058d 100644 --- a/engines/lab/tilepuzzle.h +++ b/engines/lab/tilepuzzle.h @@ -52,7 +52,7 @@ public: void mouseTile(Common::Point pos); void showTile(const Common::String filename, bool showSolution); void mouseCombination(Common::Point pos); - void showCombination(const char *filename); + void showCombination(const Common::String filename); void save(Common::OutSaveFile *file); void load(Common::InSaveFile *file); |