From ce7f9a088c03e502eaf0709b18c6c02937673f9f Mon Sep 17 00:00:00 2001 From: Benjamin Haisch Date: Sun, 31 Oct 2010 19:38:22 +0000 Subject: 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 --- engines/toltecs/screen.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/toltecs/screen.h') 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); -- cgit v1.2.3