diff options
Diffstat (limited to 'image/codecs/cinepak.cpp')
-rw-r--r-- | image/codecs/cinepak.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/image/codecs/cinepak.cpp b/image/codecs/cinepak.cpp index 9760b5b2a4..de5198812b 100644 --- a/image/codecs/cinepak.cpp +++ b/image/codecs/cinepak.cpp @@ -320,12 +320,12 @@ void CinepakDecoder::decodeVectors(Common::SeekableReadStream &stream, uint16 st } } -bool CinepakDecoder::canDither() const { - return _bitsPerPixel == 24; +bool CinepakDecoder::canDither(DitherType type) const { + return type == kDitherTypeVFW && _bitsPerPixel == 24; } -void CinepakDecoder::setDither(const byte *palette) { - assert(canDither()); +void CinepakDecoder::setDither(DitherType type, const byte *palette) { + assert(canDither(type)); delete[] _colorMap; delete[] _ditherPalette; |