diff options
author | Filippos Karapetis | 2015-12-23 22:04:03 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:43:17 +0100 |
commit | c66d5eca3a9d8ed7254d07435b74acf7ebf7d2d1 (patch) | |
tree | aa949ce746e23cf09c7e74daa974fd36ebf214ef /engines/lab/dispman.cpp | |
parent | 07aec19a06a07ee1ef66d500644a3d778d592b51 (diff) | |
download | scummvm-rg350-c66d5eca3a9d8ed7254d07435b74acf7ebf7d2d1.tar.gz scummvm-rg350-c66d5eca3a9d8ed7254d07435b74acf7ebf7d2d1.tar.bz2 scummvm-rg350-c66d5eca3a9d8ed7254d07435b74acf7ebf7d2d1.zip |
LAB: setAmigaPal() is always using 16 colors
Diffstat (limited to 'engines/lab/dispman.cpp')
-rw-r--r-- | engines/lab/dispman.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp index 49818bf1f7..e0661b7446 100644 --- a/engines/lab/dispman.cpp +++ b/engines/lab/dispman.cpp @@ -468,14 +468,11 @@ void DisplayMan::createScreen(bool hiRes) { _displayBuffer = new byte[_screenBytesPerPage]; } -void DisplayMan::setAmigaPal(uint16 *pal, uint16 numColors) { +void DisplayMan::setAmigaPal(uint16 *pal) { byte vgaPal[16 * 3]; uint16 vgaIdx = 0; - if (numColors > 16) - numColors = 16; - - for (int i = 0; i < numColors; i++) { + for (int i = 0; i < 16; i++) { vgaPal[vgaIdx++] = (byte)(((pal[i] & 0xf00) >> 8) << 2); vgaPal[vgaIdx++] = (byte)(((pal[i] & 0x0f0) >> 4) << 2); vgaPal[vgaIdx++] = (byte)(((pal[i] & 0x00f)) << 2); @@ -999,7 +996,7 @@ void DisplayMan::fade(bool fadeIn, uint16 res) { (0xF00 & fadeNumOut(0xF00 & _fadePalette[palIdx], 0xF00 & res, i)); } - setAmigaPal(newPal, 16); + setAmigaPal(newPal); _vm->waitTOF(); _vm->updateMusicAndEvents(); } |