options_menu: only draw header/footer fade in stages

This commit is contained in:
Hyper 2024-11-19 03:29:31 +00:00
parent 7b93f1b77f
commit 99b0cf3c31

View file

@ -136,23 +136,26 @@ static void DrawScanlineBars()
auto& res = ImGui::GetIO().DisplaySize; auto& res = ImGui::GetIO().DisplaySize;
auto drawList = ImGui::GetForegroundDrawList(); auto drawList = ImGui::GetForegroundDrawList();
// Top bar fade if (OptionsMenu::s_isStage)
drawList->AddRectFilledMultiColor( {
{ 0.0f, 0.0f }, // Top bar fade
{ res.x, height }, drawList->AddRectFilledMultiColor(
FADE_COLOR0, { 0.0f, 0.0f },
FADE_COLOR0, { res.x, height },
FADE_COLOR1, FADE_COLOR0,
FADE_COLOR1); FADE_COLOR0,
FADE_COLOR1,
// Bottom bar fade FADE_COLOR1);
drawList->AddRectFilledMultiColor(
{ res.x, res.y }, // Bottom bar fade
{ 0.0f, res.y - height }, drawList->AddRectFilledMultiColor(
FADE_COLOR0, { res.x, res.y },
FADE_COLOR0, { 0.0f, res.y - height },
FADE_COLOR1, FADE_COLOR0,
FADE_COLOR1); FADE_COLOR0,
FADE_COLOR1,
FADE_COLOR1);
}
SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE); SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE);