aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.h
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-23 21:34:54 +0100
committerJohannes Schickel2013-11-23 21:34:54 +0100
commitafa3f50b8a2bc47a243156c196f88ab799fe4f8f (patch)
tree2da464a6122e0f15f3bf92297ccc28d48066fcf4 /graphics/font.h
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 'graphics/font.h')
-rw-r--r--graphics/font.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/font.h b/graphics/font.h
index 6819b42f52..62538e3e59 100644
--- a/graphics/font.h
+++ b/graphics/font.h
@@ -70,7 +70,7 @@ public:
* @param chr The character to query the width of.
* @return The character's width.
*/
- virtual int getCharWidth(byte chr) const = 0;
+ virtual int getCharWidth(uint32 chr) const = 0;
/**
* Query the kerning offset between two characters.
@@ -79,7 +79,7 @@ public:
* @param right The right character. May be 0.
* @return The horizontal displacement.
*/
- virtual int getKerningOffset(byte left, byte right) const;
+ virtual int getKerningOffset(uint32 left, uint32 right) const;
/**
* Draw a character at a specific point on a surface.
@@ -96,7 +96,7 @@ public:
* @param y The y coordinate where to draw the character.
* @param color The color of the character.
*/
- virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const = 0;
+ virtual void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const = 0;
// TODO: Add doxygen comments to this
void drawString(Surface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlign align = kTextAlignLeft, int deltax = 0, bool useEllipsis = true) const;