diff options
author | Strangerke | 2015-12-24 01:12:39 +0100 |
---|---|---|
committer | Strangerke | 2015-12-24 01:12:39 +0100 |
commit | 997150e76e562438f0d939f54fd1e3fb89b1e005 (patch) | |
tree | c2143aa15a1a4d0299e80540146527ca87149acb | |
parent | 6f6c92d470d50344fb5935b4a8cd6159660d8c5b (diff) | |
download | scummvm-rg350-997150e76e562438f0d939f54fd1e3fb89b1e005.tar.gz scummvm-rg350-997150e76e562438f0d939f54fd1e3fb89b1e005.tar.bz2 scummvm-rg350-997150e76e562438f0d939f54fd1e3fb89b1e005.zip |
LAB: Change the initial valueof _screenBytesPerPage, use it in Journal functions
-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(); |