diff options
author | Willem Jan Palenstijn | 2013-10-17 13:40:26 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-10-17 13:40:26 +0200 |
commit | ee9e6b94ae73701f1c8f416464def62d905f2f9d (patch) | |
tree | 3a359bc57a37de25671562168866c8710833ac01 /engines/drascula/graphics.cpp | |
parent | 734abb5a53f498dcac30d4a9e6c5b37a57e6eb61 (diff) | |
download | scummvm-rg350-ee9e6b94ae73701f1c8f416464def62d905f2f9d.tar.gz scummvm-rg350-ee9e6b94ae73701f1c8f416464def62d905f2f9d.tar.bz2 scummvm-rg350-ee9e6b94ae73701f1c8f416464def62d905f2f9d.zip |
DRASCULA: Fix build
Diffstat (limited to 'engines/drascula/graphics.cpp')
-rw-r--r-- | engines/drascula/graphics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp index a28ca8a1cb..fe954279c3 100644 --- a/engines/drascula/graphics.cpp +++ b/engines/drascula/graphics.cpp @@ -336,7 +336,7 @@ void DrasculaEngine::centerText(const char *message, int textX, int textY) { // original starts printing 4 lines above textY int y = CLIP<int>(textY - (4 * CHAR_HEIGHT), 0, 320); - strlcpy(msg, message, 200); + Common::strlcpy(msg, message, 200); // If the message fits on screen as-is, just print it here if (textFitsCentered(msg, textX)) { @@ -363,8 +363,8 @@ void DrasculaEngine::centerText(const char *message, int textX, int textY) { while (curWord != NULL) { // Check if the word and the current line fit on screen if (tmpMessageLine[0] != '\0') - strlcat(tmpMessageLine, " ", 200); - strlcat(tmpMessageLine, curWord, 200); + Common::strlcat(tmpMessageLine, " ", 200); + Common::strlcat(tmpMessageLine, curWord, 200); if (textFitsCentered(tmpMessageLine, textX)) { // Line fits, so add the word to the current message line strcpy(messageLine, tmpMessageLine); @@ -374,8 +374,8 @@ void DrasculaEngine::centerText(const char *message, int textX, int textY) { // If it goes off screen, print_abc will adjust it x = CLIP<int>(textX - strlen(messageLine) * CHAR_WIDTH / 2, 60, 255); print_abc(messageLine, x, y + curLine * CHAR_HEIGHT); - strlcpy(messageLine, curWord, 200); - strlcpy(tmpMessageLine, curWord, 200); + Common::strlcpy(messageLine, curWord, 200); + Common::strlcpy(tmpMessageLine, curWord, 200); curLine++; } |