diff options
author | Paul Gilbert | 2011-07-01 18:04:21 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-07-01 18:04:21 +1000 |
commit | ac86efcd61aafe1ede9933f1d08b86b307de467a (patch) | |
tree | cdb960f6ce9370d7df39d7b95e7409a1063a3703 /engines/cge/bitmap.cpp | |
parent | 0000a3139a7c1d3ddf993741d4e0aa0c7ac3d760 (diff) | |
download | scummvm-rg350-ac86efcd61aafe1ede9933f1d08b86b307de467a.tar.gz scummvm-rg350-ac86efcd61aafe1ede9933f1d08b86b307de467a.tar.bz2 scummvm-rg350-ac86efcd61aafe1ede9933f1d08b86b307de467a.zip |
CGE: Palette fixes so that first screen shows correctly
Diffstat (limited to 'engines/cge/bitmap.cpp')
-rw-r--r-- | engines/cge/bitmap.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp index 64a89e9381..959301bf50 100644 --- a/engines/cge/bitmap.cpp +++ b/engines/cge/bitmap.cpp @@ -409,9 +409,16 @@ bool Bitmap::loadVBM(XFile *f) { if (f->_error == 0) { if (p) { if (_pal) { + // Read in the palette byte palData[PAL_SIZ]; f->read(palData, PAL_SIZ); - VGA::pal2DAC(palData, _pal); + + const byte *srcP = palData; + for (int idx = 0; idx < PAL_CNT; ++idx, srcP += 3) { + _pal[idx]._r = *srcP; + _pal[idx]._g = *(srcP + 1); + _pal[idx]._b = *(srcP + 2); + } } else f->seek(f->mark() + PAL_SIZ); } |