diff options
author | Sven Hesse | 2007-04-13 07:48:55 +0000 |
---|---|---|
committer | Sven Hesse | 2007-04-13 07:48:55 +0000 |
commit | bf3182abb8a34cdce93613f66bf013092b700ea2 (patch) | |
tree | aec0b1c1eddc2f11fd84e565c2c09ea86659cc87 /engines/gob/saveload.cpp | |
parent | 7370c5aa1264b451766a1e5ed4d6257d3ee8b134 (diff) | |
download | scummvm-rg350-bf3182abb8a34cdce93613f66bf013092b700ea2.tar.gz scummvm-rg350-bf3182abb8a34cdce93613f66bf013092b700ea2.tar.bz2 scummvm-rg350-bf3182abb8a34cdce93613f66bf013092b700ea2.zip |
Actually use the palette after loading
svn-id: r26459
Diffstat (limited to 'engines/gob/saveload.cpp')
-rw-r--r-- | engines/gob/saveload.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/gob/saveload.cpp b/engines/gob/saveload.cpp index beb1bc385c..d8119cf461 100644 --- a/engines/gob/saveload.cpp +++ b/engines/gob/saveload.cpp @@ -308,9 +308,11 @@ bool SaveLoad::saveTempSprite(int16 dataVar, int32 size, int32 offset) { bool SaveLoad::loadTempSprite(uint32 index, bool palette) { SurfaceDesc *sprite; - if (palette) + if (palette) { memcpy((char *) _vm->_global->_pPaletteDesc->vgaPal, (char *) _tempPal, 768); + _vm->_video->setFullPalette(_vm->_global->_pPaletteDesc); + } sprite = _vm->_draw->_spritesArray[index]; @@ -409,6 +411,7 @@ bool SaveLoad::loadSprite(Common::ReadStream &in, int32 size) { memcpy((char *) _vm->_global->_pPaletteDesc->vgaPal, (char *) buf, 768); + _vm->_video->setFullPalette(_vm->_global->_pPaletteDesc); } nRead = in.read(buf, size); |