diff options
author | Paul Gilbert | 2015-10-11 15:24:48 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-10-11 15:24:48 -0400 |
commit | ac24e8799f72a7c1e8494c7a97a0ab9faa5d01fd (patch) | |
tree | 8aa96b40b663bdbddaaf95f59a4a7732e19fa65f /engines/sherlock/scalpel/scalpel_user_interface.cpp | |
parent | 19db601fedbcf27ccd8a33e38a06f57536e601ab (diff) | |
download | scummvm-rg350-ac24e8799f72a7c1e8494c7a97a0ab9faa5d01fd.tar.gz scummvm-rg350-ac24e8799f72a7c1e8494c7a97a0ab9faa5d01fd.tar.bz2 scummvm-rg350-ac24e8799f72a7c1e8494c7a97a0ab9faa5d01fd.zip |
SHERLOCK: SS: Fix gcc compiler warnings
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_user_interface.cpp')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_user_interface.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp index 8baf4fe7da..79d74ba999 100644 --- a/engines/sherlock/scalpel/scalpel_user_interface.cpp +++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp @@ -1946,9 +1946,8 @@ void ScalpelUserInterface::printObjectDesc(const Common::String &str, bool first screen.makeButton(Common::Rect(46, CONTROLS_Y, 272, CONTROLS_Y + 10), (SHERLOCK_SCREEN_WIDTH - fixedText_PressKeyForMoreLen) / 2, fixedText_PressKeyForMore); - screen.gPrint(Common::Point((SHERLOCK_SCREEN_WIDTH - - fixedText_PressKeyForMoreLen) / 2, CONTROLS_Y), - COMMAND_FOREGROUND, fixedText_PressKeyForMoreHotkey.c_str()); + screen.gPrint(Common::Point((SHERLOCK_SCREEN_WIDTH - fixedText_PressKeyForMoreLen) / 2, CONTROLS_Y), + COMMAND_FOREGROUND, "%s", fixedText_PressKeyForMoreHotkey.c_str()); _descStr = msgP; } else { Common::String fixedText_PressKeyToContinue = fixedText.getText(kFixedText_PressKey_ToContinue); @@ -1958,9 +1957,8 @@ void ScalpelUserInterface::printObjectDesc(const Common::String &str, bool first screen.makeButton(Common::Rect(46, CONTROLS_Y, 272, CONTROLS_Y + 10), (SHERLOCK_SCREEN_WIDTH - fixedText_PressKeyToContinueLen) / 2, fixedText_PressKeyToContinue); - screen.gPrint(Common::Point((SHERLOCK_SCREEN_WIDTH - - fixedText_PressKeyToContinueLen) / 2, CONTROLS_Y), - COMMAND_FOREGROUND, fixedText_PressKeyToContinueHotkey.c_str()); + screen.gPrint(Common::Point((SHERLOCK_SCREEN_WIDTH - fixedText_PressKeyToContinueLen) / 2, CONTROLS_Y), + COMMAND_FOREGROUND, "%s", fixedText_PressKeyToContinueHotkey.c_str()); _descStr = ""; } |