(Android) fix input overlay enable

This commit is contained in:
twinaphex 2014-06-12 23:23:04 +02:00
parent b25d6a5c25
commit 34f161f1c9
2 changed files with 2 additions and 3 deletions

View File

@ -230,7 +230,7 @@ public final class UserPreferences
config.setString("video_shader", shaderPath); config.setString("video_shader", shaderPath);
config.setBoolean("video_shader_enable", prefs.getBoolean("video_shader_enable", false) && new File(shaderPath).exists()); config.setBoolean("video_shader_enable", prefs.getBoolean("video_shader_enable", false) && new File(shaderPath).exists());
config.setBoolean("input_overlay_enable", prefs.getBoolean("input_overlay_enable", true)); config.setBoolean("input_overlay_enable", prefs.getBoolean("input_overlay_enable", false));
config.setString("input_overlay", prefs.getString("input_overlay", "")); config.setString("input_overlay", prefs.getString("input_overlay", ""));
// Set whether or not custom directories are being used. // Set whether or not custom directories are being used.

View File

@ -384,8 +384,7 @@ void config_set_defaults(void)
g_settings.input.overlay_enable = false; g_settings.input.overlay_enable = false;
if (g_defaults.settings.input_overlay_enable) g_settings.input.overlay_enable = g_defaults.settings.input_overlay_enable;
g_settings.input.overlay_enable = g_defaults.settings.input_overlay_enable;
g_settings.input.overlay_opacity = 0.7f; g_settings.input.overlay_opacity = 0.7f;
g_settings.input.overlay_scale = 1.0f; g_settings.input.overlay_scale = 1.0f;