From 89f1b1c96eaa8cbb4f4938bd6524cab6c15227c1 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 1 Jul 2018 23:57:00 +0100 Subject: GUI: Add Stretch Mode selection in Options dialog --- engines/engine.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines') 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(); -- cgit v1.2.3