From 5a0556f09ca89886fda55d333745a672ea14e022 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 14 Nov 2008 22:08:10 +0000 Subject: Committed my patch #2123680 "SDL: Backend transaction / rollback support". svn-id: r35062 --- base/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base') 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 -- cgit v1.2.3