diff options
author | Johannes Schickel | 2007-03-25 19:51:19 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-03-25 19:51:19 +0000 |
commit | 41ea68e71e5136242b26384f428a29ab5e6fd9ab (patch) | |
tree | 317410308928ed85c9b35b473a33e5b850237728 /graphics/ilbm.h | |
parent | 4d56036d4d18fa6af1cb3b92fb2ef6fe8a2bfecc (diff) | |
download | scummvm-rg350-41ea68e71e5136242b26384f428a29ab5e6fd9ab.tar.gz scummvm-rg350-41ea68e71e5136242b26384f428a29ab5e6fd9ab.tar.bz2 scummvm-rg350-41ea68e71e5136242b26384f428a29ab5e6fd9ab.zip |
cleanup
svn-id: r26303
Diffstat (limited to 'graphics/ilbm.h')
-rw-r--r-- | graphics/ilbm.h | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/graphics/ilbm.h b/graphics/ilbm.h index 7d1f06767b..45c01933f5 100644 --- a/graphics/ilbm.h +++ b/graphics/ilbm.h @@ -26,7 +26,6 @@ namespace Graphics { void decodeILBM(Common::ReadStream &input, Surface &surface, byte *&colors); - typedef uint32 IFF_ID; struct Chunk { @@ -94,7 +93,6 @@ struct Chunk { } }; - struct BMHD { uint16 width, height; uint16 x, y; @@ -105,14 +103,18 @@ struct BMHD { uint16 transparentColor; byte xAspect, yAspect; uint16 pageWidth, pageHeight; + BMHD() { memset(this, 0, sizeof(*this)); } }; - - class IFFDecoder { +public: + IFFDecoder(Common::ReadStream &input); + virtual ~IFFDecoder() {} + + virtual void decode(Surface &surface, byte *&colors); protected: Chunk _formChunk; @@ -130,29 +132,17 @@ protected: virtual void readBMHD(); virtual void readCMAP(); - -public: - IFFDecoder(Common::ReadStream &input); - virtual ~IFFDecoder(); - - virtual void decode(Surface &surface, byte *&colors); - }; - - class PBMDecoder : public IFFDecoder { - +public: + PBMDecoder(Common::ReadStream &input) : IFFDecoder(input) {} protected: bool isTypeSupported(IFF_ID type); void readBody(); - -public: - PBMDecoder(Common::ReadStream &input); - ~PBMDecoder(); - }; } // End of namespace Graphics #endif + |