GROOVIE: Simplify the cursor palette reading.

This commit is contained in:
Jordi Vilalta Prat 2011-02-16 12:25:11 +01:00
parent c44538a01e
commit dd43dfc81c
2 changed files with 2 additions and 6 deletions

View file

@ -227,11 +227,7 @@ byte *GrvCursorMan_t7g::loadImage(Common::SeekableReadStream &file) {
byte *GrvCursorMan_t7g::loadPalette(Common::SeekableReadStream &file) {
byte *palette = new byte[3 * 32];
for (uint8 colournum = 0; colournum < 32; colournum++) {
palette[colournum * 3 + 0] = file.readByte();
palette[colournum * 3 + 1] = file.readByte();
palette[colournum * 3 + 2] = file.readByte();
}
file.read(palette, 3 * 32);
return palette;
}

View file

@ -106,7 +106,7 @@ void GraphicsMan::fadeIn(byte *pal) {
_fadeStartTime = _vm->_system->getMillis();
// Copy the target palette
memcpy(_paletteFull, pal, 3*256);
memcpy(_paletteFull, pal, 3 * 256);
// Set the current fading
_fading = 1;