diff options
Diffstat (limited to 'image/codecs/indeo')
-rw-r--r-- | image/codecs/indeo/indeo.cpp | 6 | ||||
-rw-r--r-- | image/codecs/indeo/indeo.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/image/codecs/indeo/indeo.cpp b/image/codecs/indeo/indeo.cpp index f0be92483c..f82c4829af 100644 --- a/image/codecs/indeo/indeo.cpp +++ b/image/codecs/indeo/indeo.cpp @@ -466,8 +466,8 @@ IVI45DecContext::IVI45DecContext() : _gb(nullptr), _frameNum(0), _frameType(0), /*------------------------------------------------------------------------*/ -IndeoDecoderBase::IndeoDecoderBase(uint16 width, uint16 height, uint bytesPerPixel) : Codec() { - switch (bytesPerPixel) { +IndeoDecoderBase::IndeoDecoderBase(uint16 width, uint16 height, uint bitsPerPixel) : Codec() { + switch (bitsPerPixel) { case 16: _pixelFormat = Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0); break; @@ -484,7 +484,7 @@ IndeoDecoderBase::IndeoDecoderBase(uint16 width, uint16 height, uint bytesPerPix _surface = new Graphics::Surface(); _surface->create(width, height, _pixelFormat); - _surface->fillRect(Common::Rect(0, 0, width, height), (bytesPerPixel == 4) ? 0xff : 0); + _surface->fillRect(Common::Rect(0, 0, width, height), (bitsPerPixel == 32) ? 0xff : 0); _ctx._bRefBuf = 3; // buffer 2 is used for scalability mode } diff --git a/image/codecs/indeo/indeo.h b/image/codecs/indeo/indeo.h index 114f0a10c8..068f8c9f25 100644 --- a/image/codecs/indeo/indeo.h +++ b/image/codecs/indeo/indeo.h @@ -574,7 +574,7 @@ protected: */ int scaleMV(int mv, int mvScale); public: - IndeoDecoderBase(uint16 width, uint16 height, uint bytesPerPixel); + IndeoDecoderBase(uint16 width, uint16 height, uint bitsPerPixel); virtual ~IndeoDecoderBase(); }; |