diff options
author | Filippos Karapetis | 2007-09-02 12:56:55 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-09-02 12:56:55 +0000 |
commit | 762aaca73bfb1d3119b6708f65340f8e644a70bc (patch) | |
tree | 729d0e7b1442c7fa7925547b17b48ecf894664f4 /engines/agi/picture.h | |
parent | ae007b49e08f65435da5a7bdea8bb53af36251e2 (diff) | |
download | scummvm-rg350-762aaca73bfb1d3119b6708f65340f8e644a70bc.tar.gz scummvm-rg350-762aaca73bfb1d3119b6708f65340f8e644a70bc.tar.bz2 scummvm-rg350-762aaca73bfb1d3119b6708f65340f8e644a70bc.zip |
The picture files in Mickey have a different width
svn-id: r28818
Diffstat (limited to 'engines/agi/picture.h')
-rw-r--r-- | engines/agi/picture.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/agi/picture.h b/engines/agi/picture.h index 5ef97c7053..2691be91de 100644 --- a/engines/agi/picture.h +++ b/engines/agi/picture.h @@ -30,6 +30,8 @@ namespace Agi { +#define _DEFAULT_WIDTH 160 + /** * AGI picture resource. */ @@ -72,6 +74,7 @@ private: // TODO: this is hardcoded for V2 pictures for now static const int pictureType = AGIPIC_V2; + int width; public: PictureMgr(AgiBase *agi, GfxMgr *gfx) { @@ -79,9 +82,9 @@ public: _gfx = gfx; } - int decodePicture(int n, int clear, bool agi256 = false); + int decodePicture(int n, int clear, bool agi256 = false, int pic_width = _DEFAULT_WIDTH); int unloadPicture(int); - void showPic(); + void showPic(int x = 0, int pic_width = _DEFAULT_WIDTH); uint8 *convertV3Pic(uint8 *src, uint32 len); }; |