diff options
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/location.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/parallaction/location.cpp b/engines/parallaction/location.cpp index 84dc62a2e5..ade8f1a1d5 100644 --- a/engines/parallaction/location.cpp +++ b/engines/parallaction/location.cpp @@ -382,17 +382,21 @@ void Parallaction::changeLocation(char *location) { _location._startPosition.x = -1000; } - byte palette[PALETTE_SIZE]; - for (uint16 _si = 0; _si < PALETTE_SIZE; _si++) palette[_si] = 0; - _gfx->setPalette(palette); + _gfx->copyScreen(Gfx::kBitBack, Gfx::kBitFront); _gfx->copyScreen(Gfx::kBitBack, Gfx::kBit2); + _gfx->setBlackPalette(); if (_location._commands.size() > 0) { runCommands(_location._commands); + runJobs(); + _gfx->swapBuffers(); + runJobs(); + _gfx->swapBuffers(); } - _gfx->copyScreen(Gfx::kBitBack, Gfx::kBitFront); + runJobs(); + _gfx->swapBuffers(); _gfx->setPalette(_gfx->_palette); if (_location._aCommands.size() > 0) { |