diff options
author | Benjamin Haisch | 2008-09-16 11:10:15 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:06 +0100 |
commit | 3c479146487893c3e88dc09ead4fb1810ed817c2 (patch) | |
tree | 437952e7409e9996c9637c1a3e21bc0b321c2897 /engines/toltecs/screen.h | |
parent | 3b89304dd970f2e29e48b6c28fac293c40a5a88d (diff) | |
download | scummvm-rg350-3c479146487893c3e88dc09ead4fb1810ed817c2.tar.gz scummvm-rg350-3c479146487893c3e88dc09ead4fb1810ed817c2.tar.bz2 scummvm-rg350-3c479146487893c3e88dc09ead4fb1810ed817c2.zip |
TOLTECS: Removed _tempString etc. and replaced it with GuiTextWrapState
Diffstat (limited to 'engines/toltecs/screen.h')
-rw-r--r-- | engines/toltecs/screen.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/engines/toltecs/screen.h b/engines/toltecs/screen.h index f7adc22f26..fa7cad9430 100644 --- a/engines/toltecs/screen.h +++ b/engines/toltecs/screen.h @@ -308,6 +308,14 @@ struct TalkTextItem { TextRect lines[15]; }; +struct GuiTextWrapState { + int16 len, len1, len2; + byte *sourceString; + byte *destString; + int16 width; + byte textBuffer[100]; +}; + class Screen { public: Screen(ToltecsEngine *vm); @@ -346,8 +354,8 @@ public: // Font/text void registerFont(uint fontIndex, uint resIndex); void drawGuiTextMulti(byte *textData); - void wrapGuiText(uint fontResIndex, int maxWidth, int &width, byte *&sourceString, byte *&destString, byte &len); - void drawGuiText(int16 x, int16 y, byte fontColor1, byte fontColor2, uint fontResIndex); + void 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); void drawChar(const Font &font, byte *dest, int16 x, int16 y, byte ch, byte color, bool outline); @@ -376,10 +384,6 @@ public: uint _fontResIndexArray[10]; byte _fontColor1, _fontColor2; - // TODO: Remove this _tempXXX stuff - byte _tempString[100]; - byte _tempStringLen1, _tempStringLen2; - // Screen shaking bool _shakeActive; int16 _shakeCounterInit, _shakeCounter; |