From cfc64157a093bd369432169d069effc9e622ba21 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 23 Jun 2013 19:36:27 -0400 Subject: VIDEO: Allow AVI tracks to be dithered via the Codec Video for Windows made the Codec do the dithering work --- video/avi_decoder.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'video/avi_decoder.h') diff --git a/video/avi_decoder.h b/video/avi_decoder.h index 8941ff4e75..6c1ce1a4b9 100644 --- a/video/avi_decoder.h +++ b/video/avi_decoder.h @@ -179,11 +179,14 @@ protected: int getCurFrame() const { return _curFrame; } int getFrameCount() const { return _frameCount; } const Graphics::Surface *decodeNextFrame() { return _lastFrame; } - const byte *getPalette() const { _dirtyPalette = false; return _palette; } - bool hasDirtyPalette() const { return _dirtyPalette; } + + const byte *getPalette() const; + bool hasDirtyPalette() const; void setCurFrame(int frame) { _curFrame = frame; } void loadPaletteFromChunk(Common::SeekableReadStream *chunk); void useInitialPalette(); + bool canDither() const; + void setDither(const byte *palette); bool isTruemotion1() const; void forceDimensions(uint16 width, uint16 height); -- cgit v1.2.3