aboutsummaryrefslogtreecommitdiff
path: root/image/bmp.h
diff options
context:
space:
mode:
authorMatthew Hoops2014-02-27 21:27:24 -0500
committerMatthew Hoops2014-02-28 00:31:59 -0500
commit0f07f85a948e39c286b0bbd9e9191d517108c2da (patch)
tree4a851be91c6a64cf085b053cee8cc031d4a526bf /image/bmp.h
parent08ea14a8d0e1a1478d1f486edeecea3e619e0cd0 (diff)
downloadscummvm-rg350-0f07f85a948e39c286b0bbd9e9191d517108c2da.tar.gz
scummvm-rg350-0f07f85a948e39c286b0bbd9e9191d517108c2da.tar.bz2
scummvm-rg350-0f07f85a948e39c286b0bbd9e9191d517108c2da.zip
IMAGE: Split raw bitmap decoding into a Codec
Diffstat (limited to 'image/bmp.h')
-rw-r--r--image/bmp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/image/bmp.h b/image/bmp.h
index bc4cfc3edd..b482cc674b 100644
--- a/image/bmp.h
+++ b/image/bmp.h
@@ -45,6 +45,8 @@ struct Surface;
namespace Image {
+class Codec;
+
class BitmapDecoder : public ImageDecoder {
public:
BitmapDecoder();
@@ -58,7 +60,8 @@ public:
uint16 getPaletteColorCount() const { return _paletteColorCount; }
private:
- Graphics::Surface *_surface;
+ Codec *_codec;
+ const Graphics::Surface *_surface;
byte *_palette;
uint16 _paletteColorCount;
};