diff options
-rw-r--r-- | engines/lab/dispman.cpp | 2 | ||||
-rw-r--r-- | engines/lab/special.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp index e9736a9bf3..5722ba9557 100644 --- a/engines/lab/dispman.cpp +++ b/engines/lab/dispman.cpp @@ -47,7 +47,7 @@ DisplayMan::DisplayMan(LabEngine *vm) : _vm(vm) { _lastMessageLong = false; _actionMessageShown = false; - _screenBytesPerPage = 65536; + _screenBytesPerPage = 0; _curPen = 0; _curBitmap = nullptr; _displayBuffer = nullptr; diff --git a/engines/lab/special.cpp b/engines/lab/special.cpp index cdbaa7b5bc..857b604f01 100644 --- a/engines/lab/special.cpp +++ b/engines/lab/special.cpp @@ -137,13 +137,13 @@ void LabEngine::loadJournalData() { delete journalFile; _anim->_noPalChange = true; - _journalBackImage->_imageData = new byte[_graphics->_screenWidth * _graphics->_screenHeight]; + _journalBackImage->_imageData = new byte[_graphics->_screenBytesPerPage]; _graphics->readPict("P:Journal.pic", true, false, _journalBackImage->_imageData); _anim->_noPalChange = false; // Keep a copy of the blank journal - _blankJournal = new byte[_graphics->_screenWidth * _graphics->_screenHeight]; - memcpy(_blankJournal, _journalBackImage->_imageData, _graphics->_screenWidth * _graphics->_screenHeight); + _blankJournal = new byte[_graphics->_screenBytesPerPage]; + memcpy(_blankJournal, _journalBackImage->_imageData, _graphics->_screenBytesPerPage); _screenImage->_imageData = _graphics->getCurrentDrawingBuffer(); } @@ -216,7 +216,7 @@ void LabEngine::drawJournal(uint16 wipenum, bool needFade) { _graphics->fade(true); // Reset the journal background, so that all the text that has been blitted on it is erased - memcpy(_journalBackImage->_imageData, _blankJournal, _graphics->_screenWidth * _graphics->_screenHeight); + memcpy(_journalBackImage->_imageData, _blankJournal, _graphics->_screenBytesPerPage); eatMessages(); _event->mouseShow(); |