LAB: Use the correct bitmap buffer in the Anim class

This commit is contained in:
Filippos Karapetis 2015-12-07 11:16:49 +02:00 committed by Willem Jan Palenstijn
parent 0e886461d0
commit b6397c0af7
3 changed files with 2 additions and 3 deletions

View file

@ -70,7 +70,7 @@ Anim::Anim(LabEngine *vm) : _vm(vm) {
_diffWidth = 0;
_diffHeight = 0;
_dataBytesPerRow = 0;
DrawBitMap = &bit2;
DrawBitMap = &_vm->_graphics->bit1;
for (int i = 0; i < 3 * 256; i++)
_diffPalette[i] = 0;

View file

@ -84,7 +84,6 @@ private:
uint32 _diffWidth;
uint32 _diffHeight;
uint16 _dataBytesPerRow;
BitMap bit2;
BitMap *DrawBitMap;
void runLengthDecode(byte *dest, byte *source);

View file

@ -144,8 +144,8 @@ Common::Error LabEngine::run() {
_event = new EventManager(this);
_resource = new Resource(this);
_music = new Music(this);
_anim = new Anim(this);
_graphics = new DisplayMan(this);
_anim = new Anim(this);
if (getPlatform() == Common::kPlatformWindows) {
// Check if this is the Wyrmkeep trial