From 762aaca73bfb1d3119b6708f65340f8e644a70bc Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 2 Sep 2007 12:56:55 +0000 Subject: The picture files in Mickey have a different width svn-id: r28818 --- engines/agi/picture.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/agi/picture.h') 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); }; -- cgit v1.2.3