diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/remap.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/sci/graphics/remap.h b/engines/sci/graphics/remap.h index 7ee9962ba3..eb7718d507 100644 --- a/engines/sci/graphics/remap.h +++ b/engines/sci/graphics/remap.h @@ -85,7 +85,17 @@ struct RemapParams { byte remap[256]; bool colorChanged[256]; - RemapParams() : RemapParams(0, 0, 0, 0, 100, kRemappingNone) { + RemapParams() { + from = to = base = gray = oldGray = percent = oldPercent = 0; + type = kRemappingNone; + + // curColor and targetColor are initialized in GfxRemap32::initColorArrays + memset(curColor, 0, 256 * sizeof(Color)); + memset(targetColor, 0, 256 * sizeof(Color)); + memset(distance, 0, 256); + for (int i = 0; i < 236; i++) + remap[i] = i; + memset(colorChanged, true, 256); } RemapParams(byte from_, byte to_, byte base_, byte gray_, byte percent_, ColorRemappingType type_) { |