aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2018-07-01 23:57:00 +0100
committerThierry Crozat2018-07-08 16:54:51 +0100
commit89f1b1c96eaa8cbb4f4938bd6524cab6c15227c1 (patch)
treed3fb95fd998ec656b4493fc2d685045881a5f979 /engines
parentadacb4fcfd743aa3980b3e08c62578f32de2d0b3 (diff)
downloadscummvm-rg350-89f1b1c96eaa8cbb4f4938bd6524cab6c15227c1.tar.gz
scummvm-rg350-89f1b1c96eaa8cbb4f4938bd6524cab6c15227c1.tar.bz2
scummvm-rg350-89f1b1c96eaa8cbb4f4938bd6524cab6c15227c1.zip
GUI: Add Stretch Mode selection in Options dialog
Diffstat (limited to 'engines')
-rw-r--r--engines/engine.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index 99f2713b7f..77ca54ffbb 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -329,6 +329,15 @@ void initGraphics(int width, int height, const Graphics::PixelFormat *format) {
dialog.runModal();
}
+ if (gfxError & OSystem::kTransactionStretchModeSwitchFailed) {
+ Common::String message = _("Could not switch to stretch mode: '");
+ message += ConfMan.get("stretch_mode");
+ message += "'.";
+
+ GUI::MessageDialog dialog(message);
+ dialog.runModal();
+ }
+
if (gfxError & OSystem::kTransactionAspectRatioFailed) {
GUI::MessageDialog dialog(_("Could not apply aspect ratio setting."));
dialog.runModal();