aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/font.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-23 21:34:54 +0100
committerJohannes Schickel2013-11-23 21:34:54 +0100
commitafa3f50b8a2bc47a243156c196f88ab799fe4f8f (patch)
tree2da464a6122e0f15f3bf92297ccc28d48066fcf4 /engines/groovie/font.cpp
parentb90400da44e4438c5a00773e6d2af82880dc45f4 (diff)
downloadscummvm-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 'engines/groovie/font.cpp')
-rw-r--r--engines/groovie/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/groovie/font.cpp b/engines/groovie/font.cpp
index d29c22dd02..a55d8fad95 100644
--- a/engines/groovie/font.cpp
+++ b/engines/groovie/font.cpp
@@ -112,7 +112,7 @@ bool T7GFont::load(Common::SeekableReadStream &stream) {
return true;
}
-void T7GFont::drawChar(Graphics::Surface *dst, byte chr, int x, int y, uint32 color) const {
+void T7GFont::drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const {
// We ignore the color, as the font is already colored
const Glyph *glyph = getGlyph(chr);
const byte *src = glyph->pixels;
@@ -125,7 +125,7 @@ void T7GFont::drawChar(Graphics::Surface *dst, byte chr, int x, int y, uint32 co
}
}
-const T7GFont::Glyph *T7GFont::getGlyph(byte chr) const {
+const T7GFont::Glyph *T7GFont::getGlyph(uint32 chr) const {
assert (chr < 128);
byte numGlyph = _mapChar2Glyph[chr];