From ad41c81fa8111ffe52a0382fe66680dcd4ba7c6a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 31 Jan 2024 00:23:51 +1000 Subject: [PATCH] ImGuiOverlays: Fix incorrect animation when opening state selector --- src/core/imgui_overlays.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/imgui_overlays.cpp b/src/core/imgui_overlays.cpp index be42d7a8d..199c8b581 100644 --- a/src/core/imgui_overlays.cpp +++ b/src/core/imgui_overlays.cpp @@ -740,8 +740,6 @@ void SaveStateSelectorUI::Open(float open_time /* = DEFAULT_OPEN_TIME */) if (!s_placeholder_texture) s_placeholder_texture = ImGuiFullscreen::LoadTexture("no-save.png"); - s_scroll_animated.Reset(0.0f); - s_background_animated.Reset(0.0f); s_open = true; RefreshList(serial); RefreshHotkeyLegend(); @@ -808,6 +806,8 @@ void SaveStateSelectorUI::Clear() s_current_slot = 0; s_current_slot_global = false; + s_scroll_animated.Reset(0.0f); + s_background_animated.Reset(0.0f); } void SaveStateSelectorUI::ClearList()