aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab/graphics.cpp')
-rw-r--r--engines/lab/graphics.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/engines/lab/graphics.cpp b/engines/lab/graphics.cpp
index 95551040c2..9dd23073b9 100644
--- a/engines/lab/graphics.cpp
+++ b/engines/lab/graphics.cpp
@@ -55,8 +55,6 @@ DisplayMan::DisplayMan(LabEngine *vm) : _vm(vm) {
_screenWidth = 0;
_screenHeight = 0;
- _dispBitMap = &bit1;
-
for (int i = 0; i < 256 * 3; i++)
_curvgapal[i] = 0;
}
@@ -139,9 +137,9 @@ void DisplayMan::readPict(const char *filename, bool playOnce) {
if (!_vm->_music->_doNotFilestopSoundEffect)
_vm->_music->stopSoundEffect();
- _dispBitMap->_bytesPerRow = _screenWidth;
- _dispBitMap->_rows = _screenHeight;
- _dispBitMap->_flags = BITMAPF_VIDEO;
+ _dispBitMap._bytesPerRow = _screenWidth;
+ _dispBitMap._rows = _screenHeight;
+ _dispBitMap._flags = BITMAPF_VIDEO;
_vm->_anim->readDiff(_curBitmap, playOnce);
}
@@ -159,14 +157,14 @@ byte *DisplayMan::readPictToMem(const char *filename, uint16 x, uint16 y) {
if (!_vm->_music->_doNotFilestopSoundEffect)
_vm->_music->stopSoundEffect();
- _dispBitMap->_bytesPerRow = x;
- _dispBitMap->_rows = y;
- _dispBitMap->_flags = BITMAPF_NONE;
- _dispBitMap->_planes[0] = _curBitmap;
- _dispBitMap->_planes[1] = _dispBitMap->_planes[0] + 0x10000;
- _dispBitMap->_planes[2] = _dispBitMap->_planes[1] + 0x10000;
- _dispBitMap->_planes[3] = _dispBitMap->_planes[2] + 0x10000;
- _dispBitMap->_planes[4] = _dispBitMap->_planes[3] + 0x10000;
+ _dispBitMap._bytesPerRow = x;
+ _dispBitMap._rows = y;
+ _dispBitMap._flags = BITMAPF_NONE;
+ _dispBitMap._planes[0] = _curBitmap;
+ _dispBitMap._planes[1] = _dispBitMap._planes[0] + 0x10000;
+ _dispBitMap._planes[2] = _dispBitMap._planes[1] + 0x10000;
+ _dispBitMap._planes[3] = _dispBitMap._planes[2] + 0x10000;
+ _dispBitMap._planes[4] = _dispBitMap._planes[3] + 0x10000;
_vm->_anim->readDiff(_curBitmap, true);