diff options
author | Nicola Mettifogo | 2007-05-13 12:40:45 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-05-13 12:40:45 +0000 |
commit | 7c79fe5bce06e63f64e70461f073c54a1cb9f698 (patch) | |
tree | 17b9584a97d036e682eb4f4b56cf6564c1fad922 /engines/parallaction | |
parent | 887fa2f7605393bdcac3af718e915d10bd9e2e2c (diff) | |
download | scummvm-rg350-7c79fe5bce06e63f64e70461f073c54a1cb9f698.tar.gz scummvm-rg350-7c79fe5bce06e63f64e70461f073c54a1cb9f698.tar.bz2 scummvm-rg350-7c79fe5bce06e63f64e70461f073c54a1cb9f698.zip |
Reverted my last change to changeLocation.
svn-id: r26831
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) { |