aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 9169f9883b..097eb04e73 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -67,7 +67,8 @@ static bool launcherDialog(OSystem &system) {
system.setFeatureState(OSystem::kFeatureAspectRatioCorrection, ConfMan.getBool("aspect_ratio"));
if (ConfMan.hasKey("fullscreen"))
system.setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen"));
- system.endGFXTransaction();
+ if (system.endGFXTransaction() != OSystem::kTransactionSuccess)
+ error("Could not switch to graphics mode: 320x200 ('%s')", ConfMan.get("gfx_mode").c_str());
// When starting up launcher for the first time, the user might have specified
// a --gui-theme option, to allow that option to be working, we need to initialize