ANDROID: Remove set default gui_scale code

This causes a crash, so it needs another approach
This commit is contained in:
antoniou 2021-08-14 11:22:08 +03:00
parent 6ab16e6ea9
commit 2782b1265d

View file

@ -400,14 +400,6 @@ 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 largest, 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", 0); // "Very large" (see gui/options.cpp)
}
// 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))