[Scummvm-git-logs] scummvm branch-2-3 -> baea6ebc8379b79cb5dc7651aa3acc7d9016cfa9
lotharsm
mail at serra.me
Sat Sep 18 09:29:19 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
baea6ebc83 BASE: Don't check for config key presence when loading gfx mode
Commit: baea6ebc8379b79cb5dc7651aa3acc7d9016cfa9
https://github.com/scummvm/scummvm/commit/baea6ebc8379b79cb5dc7651aa3acc7d9016cfa9
Author: Lothar Serra Mari (mail at serra.me)
Date: 2021-09-18T11:28:46+02:00
Commit Message:
BASE: Don't check for config key presence when loading gfx mode
Changed paths:
base/main.cpp
diff --git a/base/main.cpp b/base/main.cpp
index 09191fc3de..0405753303 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -351,12 +351,10 @@ static void setupGraphics(OSystem &system) {
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"));
- if (ConfMan.hasKey("filtering"))
- system.setFeatureState(OSystem::kFeatureFilteringMode, ConfMan.getBool("filtering"));
+ // Parse graphics configuration, implicit fallback to defaults set with RegisterDefaults()
+ system.setFeatureState(OSystem::kFeatureAspectRatioCorrection, ConfMan.getBool("aspect_ratio"));
+ system.setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen"));
+ system.setFeatureState(OSystem::kFeatureFilteringMode, ConfMan.getBool("filtering"));
system.endGFXTransaction();
system.applyBackendSettings();
More information about the Scummvm-git-logs
mailing list