MADS: Fixes and cleanup for palette loading

This commit is contained in:
Paul Gilbert 2014-03-25 21:20:44 -04:00
parent 633da299f6
commit e9977e81d0
6 changed files with 28 additions and 48 deletions

View file

@ -224,11 +224,12 @@ void UserInterface::load(const Common::String &resName) {
byte *palP = &_vm->_palette->_mainPalette[0];
for (int i = 0; i < 16; ++i, gamePalP++, palP += 3) {
palP[0] = VGA_COLOR_TRANS(palStream->readByte());
palP[1] = VGA_COLOR_TRANS(palStream->readByte());
palP[2] = VGA_COLOR_TRANS(palStream->readByte());
RGB6 rgb;
rgb.load(palStream);
palP[0] = rgb.r;
palP[1] = rgb.g;
palP[2] = rgb.b;
*gamePalP |= 1;
palStream->skip(3);
}
delete palStream;