aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/screen.h
diff options
context:
space:
mode:
authorBenjamin Haisch2010-10-31 19:38:22 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:10 +0100
commitce7f9a088c03e502eaf0709b18c6c02937673f9f (patch)
tree5f5aa4231001aee99e59672c5a4da615c16c2364 /engines/toltecs/screen.h
parent5e154f634a47524fe5d2d260c25812d40802fbc9 (diff)
downloadscummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.tar.gz
scummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.tar.bz2
scummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.zip
TOLTECS: - Work on the menu system (use strings from resources instead of hardcoded ones)
- ...and load the system strings from the resource on startup - Only redraw menu screen when required - Change parameters for some text functions from byte* to const byte* - Rename some mouse vars
Diffstat (limited to 'engines/toltecs/screen.h')
-rw-r--r--engines/toltecs/screen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toltecs/screen.h b/engines/toltecs/screen.h
index 4aeeb78a01..bd332a9da3 100644
--- a/engines/toltecs/screen.h
+++ b/engines/toltecs/screen.h
@@ -98,7 +98,7 @@ public:
byte *getCharData(byte ch) const {
return _fontData + 0x298 + READ_LE_UINT16(&_fontData[0xE0 + (ch - 0x21) * 2]);
}
- int16 getTextWidth(byte *text) {
+ int16 getTextWidth(const byte *text) {
int16 width = 0;
while (*text && *text < 0xF0) {
byte ch = *text++;
@@ -201,7 +201,7 @@ public:
int16 wrapGuiText(uint fontResIndex, int maxWidth, GuiTextWrapState &wrapState);
void drawGuiText(int16 x, int16 y, byte fontColor1, byte fontColor2, uint fontResIndex, GuiTextWrapState &wrapState);
- int16 drawString(int16 x, int16 y, byte color, uint fontResIndex, byte *text, int len = -1, int16 *ywobble = NULL, bool outline = false);
+ int16 drawString(int16 x, int16 y, byte color, uint fontResIndex, const byte *text, int len = -1, int16 *ywobble = NULL, bool outline = false);
void drawChar(const Font &font, byte *dest, int16 x, int16 y, byte ch, byte color, bool outline);
void drawSurface(int16 x, int16 y, Graphics::Surface *surface);