aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/font.cpp
diff options
context:
space:
mode:
authorSylvain Dupont2010-10-09 00:29:10 +0000
committerSylvain Dupont2010-10-09 00:29:10 +0000
commit3a0ad4c41c29b745ac3099a8a2df6a682041b4d7 (patch)
tree672f38769772150d24b604e4df9c5c4e6c4fdfba /engines/toon/font.cpp
parent2a984d1d3f2a3df03dea4a269b3b88b85b017e30 (diff)
downloadscummvm-rg350-3a0ad4c41c29b745ac3099a8a2df6a682041b4d7.tar.gz
scummvm-rg350-3a0ad4c41c29b745ac3099a8a2df6a682041b4d7.tar.bz2
scummvm-rg350-3a0ad4c41c29b745ac3099a8a2df6a682041b4d7.zip
TOON: String fixes for motoezx build
svn-id: r53093
Diffstat (limited to 'engines/toon/font.cpp')
-rw-r--r--engines/toon/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toon/font.cpp b/engines/toon/font.cpp
index 4cc8c2569a..e70acab706 100644
--- a/engines/toon/font.cpp
+++ b/engines/toon/font.cpp
@@ -67,7 +67,7 @@ void FontRenderer::renderText(int32 x, int32 y, Common::String origText, int32 m
int32 curY = y;
int32 height = 0;
- const byte *text = (byte *)origText.c_str();
+ const byte *text = (const byte *)origText.c_str();
while (*text) {
byte curChar = *text;
if (curChar == 13) {
@@ -93,7 +93,7 @@ void FontRenderer::computeSize(Common::String origText, int32 *retX, int32 *retY
int32 totalHeight = 0;
int32 totalWidth = 0;
- const byte *text = (byte *)origText.c_str();
+ const byte *text = (const byte *)origText.c_str();
while (*text) {
byte curChar = *text;
if (curChar < 32) {