diff options
author | Johannes Schickel | 2008-11-14 22:08:10 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-11-14 22:08:10 +0000 |
commit | 5a0556f09ca89886fda55d333745a672ea14e022 (patch) | |
tree | 698d0162a6737c298f8c6d313209e18a056f7684 /base | |
parent | bb87d39424c9dee6fbfddf8b806a5675bcf39494 (diff) | |
download | scummvm-rg350-5a0556f09ca89886fda55d333745a672ea14e022.tar.gz scummvm-rg350-5a0556f09ca89886fda55d333745a672ea14e022.tar.bz2 scummvm-rg350-5a0556f09ca89886fda55d333745a672ea14e022.zip |
Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
Diffstat (limited to 'base')
-rw-r--r-- | base/main.cpp | 3 |
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 |