diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-08-27 18:38:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-27 18:38:41 +0200 |
| commit | 73859ff4c086268a2dbbb038d175ddd91eb9738c (patch) | |
| tree | abaaf5cd7311dfa928ce51f6c5197f1297373292 /Source/Core | |
| parent | 7ac0db70c661abc4f648b4f5d970eb8d2a8053c6 (diff) | |
| parent | 58f247290fdc23015993b62658a40fea9734f095 (diff) | |
Merge pull request #12142 from JosJuice/ir-hotkey-outdated
Use latest resolution value for resolution hotkey OSD
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/HotkeyScheduler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp index 3f42cd4a68..59f8db8433 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp @@ -359,8 +359,8 @@ void HotkeyScheduler::Run() // Graphics const auto efb_scale = Config::Get(Config::GFX_EFB_SCALE); - auto ShowEFBScale = []() { - switch (Config::Get(Config::GFX_EFB_SCALE)) + const auto ShowEFBScale = [](int new_efb_scale) { + switch (new_efb_scale) { case EFB_SCALE_AUTO_INTEGRAL: OSD::AddMessage("Internal Resolution: Auto (integral)"); @@ -369,7 +369,7 @@ void HotkeyScheduler::Run() OSD::AddMessage("Internal Resolution: Native"); break; default: - OSD::AddMessage(fmt::format("Internal Resolution: {}x", g_Config.iEFBScale)); + OSD::AddMessage(fmt::format("Internal Resolution: {}x", new_efb_scale)); break; } }; @@ -377,14 +377,14 @@ void HotkeyScheduler::Run() if (IsHotkey(HK_INCREASE_IR)) { Config::SetCurrent(Config::GFX_EFB_SCALE, efb_scale + 1); - ShowEFBScale(); + ShowEFBScale(efb_scale + 1); } if (IsHotkey(HK_DECREASE_IR)) { if (efb_scale > EFB_SCALE_AUTO_INTEGRAL) { Config::SetCurrent(Config::GFX_EFB_SCALE, efb_scale - 1); - ShowEFBScale(); + ShowEFBScale(efb_scale - 1); } } |
