From ea81346fc3bb70a7baea44400fa28c796cee39ac Mon Sep 17 00:00:00 2001 From: sowens99 Date: Fri, 15 Oct 2021 23:22:22 -0400 Subject: [PATCH] Fix swapped frame advance speed increase/decrease Frame Advance Speed hotkeys were swapped. This likely occurred because speed and delay are inverses (i.e. a speed increase should DECREASE the delay and vice versa). --- Source/Core/DolphinQt/HotkeyScheduler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp index c54af094ce..266ad348f1 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp @@ -88,13 +88,13 @@ static void HandleFrameStepHotkeys() if (IsHotkey(HK_FRAME_ADVANCE_INCREASE_SPEED)) { - frame_step_delay = std::min(frame_step_delay + 1, MAX_FRAME_STEP_DELAY); + frame_step_delay = std::max(frame_step_delay - 1, 0); return; } if (IsHotkey(HK_FRAME_ADVANCE_DECREASE_SPEED)) { - frame_step_delay = std::max(frame_step_delay - 1, 0); + frame_step_delay = std::min(frame_step_delay + 1, MAX_FRAME_STEP_DELAY); return; }