diff options
author | Johannes Schickel | 2013-11-23 21:34:54 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-11-23 21:34:54 +0100 |
commit | afa3f50b8a2bc47a243156c196f88ab799fe4f8f (patch) | |
tree | 2da464a6122e0f15f3bf92297ccc28d48066fcf4 /graphics/fonts/winfont.h | |
parent | b90400da44e4438c5a00773e6d2af82880dc45f4 (diff) | |
download | scummvm-rg350-afa3f50b8a2bc47a243156c196f88ab799fe4f8f.tar.gz scummvm-rg350-afa3f50b8a2bc47a243156c196f88ab799fe4f8f.tar.bz2 scummvm-rg350-afa3f50b8a2bc47a243156c196f88ab799fe4f8f.zip |
GRAPHICS: Let Font take uint32 as character codes.
This is required to support UTF-32 strings but does not make them work
automatically!
Diffstat (limited to 'graphics/fonts/winfont.h')
-rw-r--r-- | graphics/fonts/winfont.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/fonts/winfont.h b/graphics/fonts/winfont.h index 4382d7ed6b..2c7ba07b41 100644 --- a/graphics/fonts/winfont.h +++ b/graphics/fonts/winfont.h @@ -62,8 +62,8 @@ public: // Font API int getFontHeight() const { return _pixHeight; } int getMaxCharWidth() const { return _maxWidth; } - int getCharWidth(byte chr) const; - void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const; + int getCharWidth(uint32 chr) const; + void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const; private: bool loadFromPE(const Common::String &fileName, const WinFontDirEntry &dirEntry); @@ -72,7 +72,7 @@ private: uint32 getFontIndex(Common::SeekableReadStream &stream, const WinFontDirEntry &dirEntry); bool loadFromFNT(Common::SeekableReadStream &stream); char indexToCharacter(uint16 index) const; - uint16 characterToIndex(byte character) const; + uint16 characterToIndex(uint32 character) const; uint16 _pixHeight; uint16 _maxWidth; |