From 99b0cf3c316170c89a1fcdce5ad9620a821cb4b5 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Tue, 19 Nov 2024 03:29:31 +0000 Subject: [PATCH] options_menu: only draw header/footer fade in stages --- UnleashedRecomp/ui/options_menu.cpp | 37 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index bc250cbf..5072fafc 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -136,23 +136,26 @@ static void DrawScanlineBars() auto& res = ImGui::GetIO().DisplaySize; auto drawList = ImGui::GetForegroundDrawList(); - // Top bar fade - drawList->AddRectFilledMultiColor( - { 0.0f, 0.0f }, - { res.x, height }, - FADE_COLOR0, - FADE_COLOR0, - FADE_COLOR1, - FADE_COLOR1); - - // Bottom bar fade - drawList->AddRectFilledMultiColor( - { res.x, res.y }, - { 0.0f, res.y - height }, - FADE_COLOR0, - FADE_COLOR0, - FADE_COLOR1, - FADE_COLOR1); + if (OptionsMenu::s_isStage) + { + // Top bar fade + drawList->AddRectFilledMultiColor( + { 0.0f, 0.0f }, + { res.x, height }, + FADE_COLOR0, + FADE_COLOR0, + FADE_COLOR1, + FADE_COLOR1); + + // Bottom bar fade + drawList->AddRectFilledMultiColor( + { res.x, res.y }, + { 0.0f, res.y - height }, + FADE_COLOR0, + FADE_COLOR0, + FADE_COLOR1, + FADE_COLOR1); + } SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE);