diff options
author | Arnaud Boutonné | 2010-09-22 21:22:11 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-09-22 21:22:11 +0000 |
commit | b9b1905378ee1cd7a67428849925ae0e7ba8fcbe (patch) | |
tree | acb2659bbbb780022a2b6329af2e45e2ce6f684b /engines/hugo/display.cpp | |
parent | 0db9a4d6b4a5ed8bd7d706dca9835b38ac4b673b (diff) | |
download | scummvm-rg350-b9b1905378ee1cd7a67428849925ae0e7ba8fcbe.tar.gz scummvm-rg350-b9b1905378ee1cd7a67428849925ae0e7ba8fcbe.tar.bz2 scummvm-rg350-b9b1905378ee1cd7a67428849925ae0e7ba8fcbe.zip |
HUGO: Constify char* parameters in Screen
svn-id: r52860
Diffstat (limited to 'engines/hugo/display.cpp')
-rw-r--r-- | engines/hugo/display.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp index 0c6ed083f1..55f685de0f 100644 --- a/engines/hugo/display.cpp +++ b/engines/hugo/display.cpp @@ -349,7 +349,7 @@ int16 Screen::fontHeight() { // Returns length of supplied string in pixels -int16 Screen::stringLength(char *s) { +int16 Screen::stringLength(const char *s) { int16 sum; byte **fontArr = _font[_fnt]; @@ -362,7 +362,7 @@ int16 Screen::stringLength(char *s) { } // Return x which would center supplied string -int16 Screen::center(char *s) { +int16 Screen::center(const char *s) { debugC(1, kDebugDisplay, "center(%s)", s); return ((int16)((XPIX - stringLength(s)) >> 1)); @@ -370,7 +370,7 @@ int16 Screen::center(char *s) { // Write string at sx,sy in supplied color in current font // If sx == CENTER, center it -void Screen::writeStr(int16 sx, int16 sy, char *s, byte color) { +void Screen::writeStr(int16 sx, int16 sy, const char *s, byte color) { byte **font = _font[_fnt]; debugC(2, kDebugDisplay, "writeStr(%d, %d, %s, %d)", sx, sy, s, color); @@ -385,7 +385,7 @@ void Screen::writeStr(int16 sx, int16 sy, char *s, byte color) { } // Shadowed version of writestr -void Screen::shadowStr(int16 sx, int16 sy, char *s, byte color) { +void Screen::shadowStr(int16 sx, int16 sy, const char *s, byte color) { debugC(1, kDebugDisplay, "shadowStr(%d, %d, %s, %d)", sx, sy, s, color); if (sx == CENTER) |