diff options
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()); |