diff options
Diffstat (limited to 'engines/sludge/fonttext.h')
-rw-r--r-- | engines/sludge/fonttext.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/sludge/fonttext.h b/engines/sludge/fonttext.h index 3170a3e12f..26b12d9f11 100644 --- a/engines/sludge/fonttext.h +++ b/engines/sludge/fonttext.h @@ -22,6 +22,7 @@ #ifndef SLUDGE_FONTTEXT_H #define SLUDGE_FONTTEXT_H +#include "common/hashmap.h" #include "common/ustr.h" #include "sludge/sprites.h" @@ -37,6 +38,9 @@ public: TextManager(); virtual ~TextManager(); + void init(); + void kill(); + int stringWidth(const Common::String &theText); int stringLength(const Common::String &theText); @@ -59,10 +63,9 @@ private: UTF8Converter _fontOrder; int16 _fontSpace; - uint32 *_fontTable; - uint _fontTableSize; + Common::HashMap<uint32, uint32> _fontTable; - inline uint32 fontInTable(uint32 x) { return ((x < _fontTableSize) ? _fontTable[x] : 0); } + inline uint32 fontInTable(uint32 x) { return _fontTable[x]; } }; |