aboutsummaryrefslogtreecommitdiff
path: root/engines/made/resource.h
diff options
context:
space:
mode:
authorBenjamin Haisch2008-04-23 20:12:06 +0000
committerBenjamin Haisch2008-04-23 20:12:06 +0000
commitd0ad5867e0d8ecb21aee7abfe0e7beb8eacfcf25 (patch)
tree77bafd6d29d67402ed0d22db8c43b64c4eb5f926 /engines/made/resource.h
parentc841481aa37e673af7cadda41da6dbc77514a8d4 (diff)
downloadscummvm-rg350-d0ad5867e0d8ecb21aee7abfe0e7beb8eacfcf25.tar.gz
scummvm-rg350-d0ad5867e0d8ecb21aee7abfe0e7beb8eacfcf25.tar.bz2
scummvm-rg350-d0ad5867e0d8ecb21aee7abfe0e7beb8eacfcf25.zip
Fixed palette issues when showing the inventory and the menu.
Moved drawing code from drawFlex/drawAnimFrame to drawSurface. Implemented opcodes: - o1_VISUALFX - o1_SCREENLOCK - o1_SETTIMER - o1_SETGROUND - o1_SETCLIP - o1_SETEXCLUDE svn-id: r31675
Diffstat (limited to 'engines/made/resource.h')
-rw-r--r--engines/made/resource.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/made/resource.h b/engines/made/resource.h
index 5508a65ffc..9fc89a5892 100644
--- a/engines/made/resource.h
+++ b/engines/made/resource.h
@@ -64,9 +64,11 @@ public:
Graphics::Surface *getPicture() const { return _picture; }
byte *getPalette() const { return _picturePalette; }
bool hasPalette() const { return _hasPalette; }
+ int getPaletteColorCount() const { return _paletteColorCount; }
protected:
Graphics::Surface *_picture;
byte *_picturePalette;
+ int _paletteColorCount;
bool _hasPalette;
};
@@ -103,7 +105,7 @@ public:
~MenuResource();
void load(byte *source, int size);
int getCount() const { return _strings.size(); }
- Common::String getString(int index) const { return _strings[index]; }
+ const char *getString(int index) const;
protected:
Common::Array<Common::String> _strings;
};