From e8c20fa782d91292986859abacc14a5df6789d3a Mon Sep 17 00:00:00 2001 From: Amanda Watson Date: Fri, 26 Jan 2024 19:14:27 -0600 Subject: [PATCH] [SettingsFragmentPresenter.kt] set RESOLUTION_FACTOR preference with RESOLUTION_FACTOR setting instead of GRAPHICS_API Currently, the RESOLUTION_FACTOR preference is being set with the GRAPHICS_API key and default. Therefore, it will set/retrieve the wrong values This revision updates the RESOLUTION_FACTOR preference to use the RESOLUTION_FACTOR key and default value. As a result, RESOLUTION_FACTOR and GRAPHICS_API should store and return the correct (separate) values --- .../features/settings/ui/SettingsFragmentPresenter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android/app/src/main/java/org/citra/citra_emu/features/settings/ui/SettingsFragmentPresenter.kt b/src/android/app/src/main/java/org/citra/citra_emu/features/settings/ui/SettingsFragmentPresenter.kt index c196da08e7..9f504e6037 100644 --- a/src/android/app/src/main/java/org/citra/citra_emu/features/settings/ui/SettingsFragmentPresenter.kt +++ b/src/android/app/src/main/java/org/citra/citra_emu/features/settings/ui/SettingsFragmentPresenter.kt @@ -687,8 +687,8 @@ class SettingsFragmentPresenter(private val fragmentView: SettingsFragmentView) 1, 10, "x", - IntSetting.GRAPHICS_API.key, - IntSetting.GRAPHICS_API.defaultValue.toFloat() + IntSetting.RESOLUTION_FACTOR.key, + IntSetting.RESOLUTION_FACTOR.defaultValue.toFloat() ) ) add(