diff options
author | Max Horn | 2011-06-02 13:49:54 +0200 |
---|---|---|
committer | Max Horn | 2011-06-02 18:31:58 +0200 |
commit | 86240bb0dc0103e5099d23770cc04cfd907d2c61 (patch) | |
tree | 7b4396b8d325397086967be2e195f887616d1326 /engines/engine.cpp | |
parent | d21ddbce7988bdc1e611ab21cdac365fe9206134 (diff) | |
download | scummvm-rg350-86240bb0dc0103e5099d23770cc04cfd907d2c61.tar.gz scummvm-rg350-86240bb0dc0103e5099d23770cc04cfd907d2c61.tar.bz2 scummvm-rg350-86240bb0dc0103e5099d23770cc04cfd907d2c61.zip |
ENGINES: Get rid of some s(n)printf calls
Diffstat (limited to 'engines/engine.cpp')
-rw-r--r-- | engines/engine.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp index b3cb8bea06..6c153310b6 100644 --- a/engines/engine.cpp +++ b/engines/engine.cpp @@ -206,12 +206,8 @@ void initGraphics(int width, int height, bool defaultTo1xScaler, const Graphics: // Error out on size switch failure if (gfxError & OSystem::kTransactionSizeChangeFailed) { - char buffer[16]; - snprintf(buffer, 16, "%dx%d", width, height); - - Common::String message = "Could not switch to resolution: '"; - message += buffer; - message += "'."; + Common::String message; + message = Common::String::format("Could not switch to resolution: '%dx%d'.", width, height); GUIErrorMessage(message); error("%s", message.c_str()); |