From b4d77e60cfc4c8b0f49b4b06a79e85e64af10602 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 2 Sep 2007 13:23:07 +0000 Subject: The dimensions of the picture resources in preagi games is different for each game. Mickey's pictures are shown correctly now svn-id: r28819 --- engines/agi/picture.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/agi/picture.h') diff --git a/engines/agi/picture.h b/engines/agi/picture.h index 2691be91de..799037e3cd 100644 --- a/engines/agi/picture.h +++ b/engines/agi/picture.h @@ -31,6 +31,7 @@ namespace Agi { #define _DEFAULT_WIDTH 160 +#define _DEFAULT_HEIGHT 168 /** * AGI picture resource. @@ -74,7 +75,7 @@ private: // TODO: this is hardcoded for V2 pictures for now static const int pictureType = AGIPIC_V2; - int width; + int width, height; public: PictureMgr(AgiBase *agi, GfxMgr *gfx) { @@ -82,9 +83,9 @@ public: _gfx = gfx; } - int decodePicture(int n, int clear, bool agi256 = false, int pic_width = _DEFAULT_WIDTH); + int decodePicture(int n, int clear, bool agi256 = false, int pic_width = _DEFAULT_WIDTH, int pic_height = _DEFAULT_HEIGHT); int unloadPicture(int); - void showPic(int x = 0, int pic_width = _DEFAULT_WIDTH); + void showPic(int x = 0, int pic_width = _DEFAULT_WIDTH, int pic_height = _DEFAULT_HEIGHT); uint8 *convertV3Pic(uint8 *src, uint32 len); }; -- cgit v1.2.3