diff options
author | Max Horn | 2003-05-21 16:28:02 +0000 |
---|---|---|
committer | Max Horn | 2003-05-21 16:28:02 +0000 |
commit | 8a82e59065433e679958feb864208db0bba0f354 (patch) | |
tree | ffa430f18a2a93b1eca150d6f3106e94739f2be6 /scumm/charset.cpp | |
parent | 4fb4626ac99eed69c86afd94371c5784f2ede61a (diff) | |
download | scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.tar.gz scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.tar.bz2 scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.zip |
constness fixes
svn-id: r7787
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r-- | scumm/charset.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp index bb13e43491..380a00af61 100644 --- a/scumm/charset.cpp +++ b/scumm/charset.cpp @@ -94,7 +94,7 @@ int CharsetRendererClassic::getCharWidth(byte chr) { return spacing; } -int CharsetRenderer::getStringWidth(int arg, byte *text) { +int CharsetRenderer::getStringWidth(int arg, const byte *text) { int pos = 0; int width = 1; byte chr; @@ -112,8 +112,8 @@ int CharsetRenderer::getStringWidth(int arg, byte *text) { if (chr == 8) { // 'Verb on next line' if (arg == 1) break; - while (text[pos] == ' ') - text[pos++] = '@'; + while (text[pos++] == ' ') + ; continue; } if (chr == 10 || chr == 21 || chr == 12 || chr == 13) { |