Fix for bug #2089275: "GUI: Returning to launcher may trigger an error".

svn-id: r34532
This commit is contained in:
Johannes Schickel 2008-09-14 18:59:43 +00:00
parent 371af75374
commit 78d7a276cf

View file

@ -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