diff options
author | Paul Gilbert | 2016-07-22 21:46:32 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-22 21:56:16 -0400 |
commit | 21e4d6686f515e70fce1ee177388b5d3bc7a4d61 (patch) | |
tree | 6f16f68103b768ffbff435de46c18c15dda1dbe5 /engines/titanic/support/image.h | |
parent | 7f05cfad13fbce82326542d9bdd0dd0473565baf (diff) | |
download | scummvm-rg350-21e4d6686f515e70fce1ee177388b5d3bc7a4d61.tar.gz scummvm-rg350-21e4d6686f515e70fce1ee177388b5d3bc7a4d61.tar.bz2 scummvm-rg350-21e4d6686f515e70fce1ee177388b5d3bc7a4d61.zip |
TITANIC: Beginnings of Continue Save dialog
Diffstat (limited to 'engines/titanic/support/image.h')
-rw-r--r-- | engines/titanic/support/image.h | 49 |
1 files changed, 5 insertions, 44 deletions
diff --git a/engines/titanic/support/image.h b/engines/titanic/support/image.h index 9030e81ad7..9876f15c40 100644 --- a/engines/titanic/support/image.h +++ b/engines/titanic/support/image.h @@ -23,58 +23,19 @@ #ifndef TITANIC_IMAGE_H #define TITANIC_IMAGE_H -#include "common/scummsys.h" -#include "common/array.h" +#include "common/stream.h" +#include "graphics/managed_surface.h" +#include "titanic/support/string.h" namespace Titanic { -struct BITMAPINFOHEADER { - int _biSize; - int _biWidth; - int _biHeight; - int _biPlanes; - int _biBitCount; - int _biCompression; - int _biSizeImage; - int _biXPelsPerMeter; - int _biYPelsPerMeter; - int _biClrUsed; - int _biClrImportant; - - BITMAPINFOHEADER(); -}; - -struct RGBQuad { - byte _rgbRed; - byte _rgbGreen; - byte _rgbBlue; - byte _rgbReserved; - - RGBQuad(); -}; - -struct tagBITMAPINFO { - BITMAPINFOHEADER _bmiHeader; - RGBQuad _bmiColors[256]; -}; - -class Image { +class Image : public Graphics::ManagedSurface { private: void loadBitmap(Common::SeekableReadStream &s); public: - tagBITMAPINFO *_bitmapInfo; - byte *_bits; - bool _flag; -public: - Image(); virtual ~Image() {} - virtual void proc6(); - virtual void set(int width, int height); - virtual void proc8(); - virtual bool loadResource(const Common::String &name); - virtual void proc10(); - virtual void draw(); + void load(const CString &resName); }; } // End of namespace Titanic |