diff options
author | Willem Jan Palenstijn | 2011-11-26 22:26:47 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-27 00:53:39 +0100 |
commit | f9ad14dc2d0a7007413fa6cbde4c9a694446b0a4 (patch) | |
tree | 6809d8cfd3b9d9f5dc91477bc9978756baf9b180 /engines/toon/font.cpp | |
parent | e4bdea7c17a4d2122a89236010fbc77cb298dfa5 (diff) | |
download | scummvm-rg350-f9ad14dc2d0a7007413fa6cbde4c9a694446b0a4.tar.gz scummvm-rg350-f9ad14dc2d0a7007413fa6cbde4c9a694446b0a4.tar.bz2 scummvm-rg350-f9ad14dc2d0a7007413fa6cbde4c9a694446b0a4.zip |
TOON: Clean up Common::String usage
Thanks to Sylvain for testing.
Diffstat (limited to 'engines/toon/font.cpp')
-rw-r--r-- | engines/toon/font.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/toon/font.cpp b/engines/toon/font.cpp index 63304c905f..d58663a00c 100644 --- a/engines/toon/font.cpp +++ b/engines/toon/font.cpp @@ -65,7 +65,7 @@ byte FontRenderer::textToFont(byte c) { return map_textToFont[c - 0x80]; } -void FontRenderer::renderText(int32 x, int32 y, Common::String origText, int32 mode) { +void FontRenderer::renderText(int32 x, int32 y, const Common::String &origText, int32 mode) { debugC(5, kDebugFont, "renderText(%d, %d, %s, %d)", x, y, origText.c_str(), mode); int32 xx, yy; @@ -104,7 +104,7 @@ void FontRenderer::renderText(int32 x, int32 y, Common::String origText, int32 m } } -void FontRenderer::computeSize(Common::String origText, int32 *retX, int32 *retY) { +void FontRenderer::computeSize(const Common::String &origText, int32 *retX, int32 *retY) { debugC(4, kDebugFont, "computeSize(%s, retX, retY)", origText.c_str()); int32 lineWidth = 0; @@ -189,7 +189,7 @@ void FontRenderer::setFontColor(int32 fontColor1, int32 fontColor2, int32 fontCo _currentFontColor[3] = fontColor3; } -void FontRenderer::renderMultiLineText(int32 x, int32 y, Common::String origText, int32 mode) { +void FontRenderer::renderMultiLineText(int32 x, int32 y, const Common::String &origText, int32 mode) { debugC(5, kDebugFont, "renderMultiLineText(%d, %d, %s, %d)", x, y, origText.c_str(), mode); // divide the text in several lines |