diff options
author | Filippos Karapetis | 2016-06-13 01:45:36 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-06-13 12:01:28 +0300 |
commit | 00761de4a3059f77b76720973eef725d50eec87d (patch) | |
tree | 45a33c46282ee111bc0c696994f8aa57bf14bdf0 /engines/sci | |
parent | 013406abdd6873545ca5466b604a09a2b0afb4ae (diff) | |
download | scummvm-rg350-00761de4a3059f77b76720973eef725d50eec87d.tar.gz scummvm-rg350-00761de4a3059f77b76720973eef725d50eec87d.tar.bz2 scummvm-rg350-00761de4a3059f77b76720973eef725d50eec87d.zip |
SCI32: Remove the unused newColors array
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/remap.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/sci/graphics/remap.cpp b/engines/sci/graphics/remap.cpp index e331eaf971..6f9b96a1aa 100644 --- a/engines/sci/graphics/remap.cpp +++ b/engines/sci/graphics/remap.cpp @@ -329,7 +329,6 @@ bool GfxRemap32::applyRemap(byte index) { RemapParams *curRemap = &_remaps[index]; const bool *cycleMap = _palette->getCyclemap(); bool unmappedColors[NON_REMAPPED_COLOR_COUNT]; - Color newColors[NON_REMAPPED_COLOR_COUNT]; bool changed = false; Common::fill(unmappedColors, unmappedColors + NON_REMAPPED_COLOR_COUNT, false); @@ -341,12 +340,6 @@ bool GfxRemap32::applyRemap(byte index) { unmappedColors[i] = true; } - int curColor = 0; - for (int i = 1; i < NON_REMAPPED_COLOR_COUNT; i++) { - if (curRemap->colorChanged[i] && !unmappedColors[i]) - newColors[curColor++] = curRemap->curColor[i]; - } - for (int i = 1; i < NON_REMAPPED_COLOR_COUNT; i++) { Color targetColor = curRemap->targetColor[i]; bool colorChanged = curRemap->colorChanged[curRemap->remap[i]]; |