[Scummvm-git-logs] scummvm master -> 4c163d99adbd3ede2299424f5169cc8c6cccd536
antoniou79
a.antoniou79 at gmail.com
Sat Aug 14 16:19:20 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:
4c163d99ad ANDROID: Set gui-scale to Large by default
Commit: 4c163d99adbd3ede2299424f5169cc8c6cccd536
https://github.com/scummvm/scummvm/commit/4c163d99adbd3ede2299424f5169cc8c6cccd536
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2021-08-14T19:18:54+03:00
Commit Message:
ANDROID: Set gui-scale to Large by default
Changed paths:
backends/platform/android/android.cpp
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index a00cf416c9..499c418773 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -400,6 +400,14 @@ void OSystem_Android::initBackend() {
ConfMan.set("browser_lastpath", "/");
}
+ if (!ConfMan.hasKey("gui_scale")) {
+ // Until a proper scale detection is done (especially post PR https://github.com/scummvm/scummvm/pull/3264/commits/8646dfca329b6fbfdba65e0dc0802feb1382dab2),
+ // set scale by default to large, if not set, and then let the user set it manually from the launcher -> Options -> Misc tab
+ // Otherwise the screen may default to very tiny and indiscernible text and be barely usable.
+ // TODO We need a proper scale detection for Android, see: (float) AndroidGraphicsManager::getHiDPIScreenFactor() in android/graphics.cpp
+ ConfMan.setInt("gui_scale", 125); // "Large" (see gui/options.cpp and guiBaseValues[])
+ }
+
// BUG: "transient" ConfMan settings get nuked by the options
// screen. Passing the savepath in this way makes it stick
// (via ConfMan.registerDefault() which is called from DefaultSaveFileManager constructor (backends/saves/default/default-saves.cpp))
More information about the Scummvm-git-logs
mailing list