From 78d7a276cf113b7db6eeab051c9b16fa21bb332f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 14 Sep 2008 18:59:43 +0000 Subject: Fix for bug #2089275: "GUI: Returning to launcher may trigger an error". svn-id: r34532 --- base/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'base') diff --git a/base/main.cpp b/base/main.cpp index 897c9fe2eb..3e560aa605 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -61,6 +61,11 @@ static bool launcherDialog(OSystem &system) { system.setGraphicsMode(ConfMan.get("gfx_mode").c_str()); system.initSize(320, 200); + + if (ConfMan.hasKey("aspect_ratio")) + system.setFeatureState(OSystem::kFeatureAspectRatioCorrection, ConfMan.getBool("aspect_ratio")); + if (ConfMan.hasKey("fullscreen")) + system.setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen")); system.endGFXTransaction(); // Set initial window caption -- cgit v1.2.3