aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2015-12-24 01:12:39 +0100
committerStrangerke2015-12-24 01:12:39 +0100
commit997150e76e562438f0d939f54fd1e3fb89b1e005 (patch)
treec2143aa15a1a4d0299e80540146527ca87149acb /engines
parent6f6c92d470d50344fb5935b4a8cd6159660d8c5b (diff)
downloadscummvm-rg350-997150e76e562438f0d939f54fd1e3fb89b1e005.tar.gz
scummvm-rg350-997150e76e562438f0d939f54fd1e3fb89b1e005.tar.bz2
scummvm-rg350-997150e76e562438f0d939f54fd1e3fb89b1e005.zip
LAB: Change the initial valueof _screenBytesPerPage, use it in Journal functions
Diffstat (limited to 'engines')
-rw-r--r--engines/lab/dispman.cpp2
-rw-r--r--engines/lab/special.cpp8
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();