diff options
author | Matthew Hoops | 2010-11-18 20:40:48 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-18 20:40:48 +0000 |
commit | d94844f20596a24d14a056ce272eb0cf98acef4a (patch) | |
tree | b96c6a123014fcef5b87018440a5a442951b8392 /engines/mohawk/bitmap.h | |
parent | 9fb1e2b17ea294b06297139198cd80c06783a714 (diff) | |
download | scummvm-rg350-d94844f20596a24d14a056ce272eb0cf98acef4a.tar.gz scummvm-rg350-d94844f20596a24d14a056ce272eb0cf98acef4a.tar.bz2 scummvm-rg350-d94844f20596a24d14a056ce272eb0cf98acef4a.zip |
MOHAWK: Add support for Riven 24bpp images (not yet used)
svn-id: r54345
Diffstat (limited to 'engines/mohawk/bitmap.h')
-rw-r--r-- | engines/mohawk/bitmap.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/mohawk/bitmap.h b/engines/mohawk/bitmap.h index 70f3d97e45..844185035e 100644 --- a/engines/mohawk/bitmap.h +++ b/engines/mohawk/bitmap.h @@ -88,7 +88,7 @@ public: protected: BitmapHeader _header; - byte getBitsPerPixel(); + virtual byte getBitsPerPixel(); // The actual LZ decoder static Common::SeekableReadStream *decompressLZ(Common::SeekableReadStream *stream, uint32 uncompressedSize); @@ -96,6 +96,9 @@ protected: // The current data stream Common::SeekableReadStream *_data; + // Create the output surface + Graphics::Surface *createSurface(uint16 width, uint16 height); + // Draw Functions void drawRaw(Graphics::Surface *surface); void drawRLE8(Graphics::Surface *surface); @@ -146,6 +149,9 @@ public: ImageData *decodeImage(Common::SeekableReadStream *stream); +protected: + byte getBitsPerPixel() { return _info.bitsPerPixel; } + private: struct BitmapHeader { uint16 type; @@ -176,6 +182,9 @@ public: ~OldMohawkBitmap() {} ImageData *decodeImage(Common::SeekableReadStream *stream); + +protected: + byte getBitsPerPixel() { return 8; } }; } // End of namespace Mohawk |