aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/display.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2010-08-27 09:48:53 +0000
committerArnaud Boutonné2010-08-27 09:48:53 +0000
commitec9708694e886746af0d45d30bbf271c2061053f (patch)
tree1b75a7291c13bb389175ca08896f7959395d4064 /engines/hugo/display.cpp
parentfd574d5e24ce10cd10f75b73f6f98327f4ce79ce (diff)
downloadscummvm-rg350-ec9708694e886746af0d45d30bbf271c2061053f.tar.gz
scummvm-rg350-ec9708694e886746af0d45d30bbf271c2061053f.tar.bz2
scummvm-rg350-ec9708694e886746af0d45d30bbf271c2061053f.zip
HUGO: Hopefully fix GCC_PRINTF issue in util
* Add a mask in each call of Warn(), Error() and Box() not using one * cleanup: use the same wording for 'End of namespace Hugo' in all files svn-id: r52406
Diffstat (limited to 'engines/hugo/display.cpp')
-rw-r--r--engines/hugo/display.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index d80119b90d..67359b59bf 100644
--- a/engines/hugo/display.cpp
+++ b/engines/hugo/display.cpp
@@ -278,7 +278,7 @@ void Screen::displayList(dupdate_t update, ...) {
break;
case D_ADD: // Add a rectangle to list
if (addIndex >= DMAX) {
- Utils::Warn(false, "Display list exceeded");
+ Utils::Warn(false, "%s", "Display list exceeded");
return;
}
va_start(marker, update); // Initialize variable arguments
@@ -440,7 +440,8 @@ void Screen::loadFont(int16 fontId) {
void Screen::userHelp() {
// Introduce user to the game
// DOS versions Only
- Utils::Box(BOX_ANY , "F1 - Press F1 again\n"
+ Utils::Box(BOX_ANY , "%s",
+ "F1 - Press F1 again\n"
" for instructions\n"
"F2 - Sound on/off\n"
"F3 - Recall last line\n"
@@ -452,4 +453,4 @@ void Screen::userHelp() {
"ESC - Return to game");
}
-} // end of namespace Hugo
+} // End of namespace Hugo