MADS: Fixes and cleanup for palette loading
This commit is contained in:
parent
633da299f6
commit
e9977e81d0
6 changed files with 28 additions and 48 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue