GROOVIE: Simplify the cursor palette reading.
This commit is contained in:
parent
c44538a01e
commit
dd43dfc81c
2 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue