From 80940258fef7749d713d9cfc77cb7e5c9f7f3f6f Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sat, 28 Mar 2020 22:09:13 -0700 Subject: [PATCH] ui: Fix alpha fade out for main menu --- ui/xemu-hud.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/xemu-hud.cc b/ui/xemu-hud.cc index 03f0ab9268..1b033420a8 100644 --- a/ui/xemu-hud.cc +++ b/ui/xemu-hud.cc @@ -472,12 +472,12 @@ void xemu_hud_render(SDL_Window *window) if (t >= 1.0) { alpha = 0.0; } - ImGui::SetNextWindowBgAlpha(alpha); } if (alpha > 0.0) { ImVec4 tc = ImGui::GetStyle().Colors[ImGuiCol_Text]; tc.w = alpha; ImGui::PushStyleColor(ImGuiCol_Text, tc); + ImGui::SetNextWindowBgAlpha(alpha); ShowMainMenu(); ImGui::PopStyleColor(); } else {