From 32ff3ab3524559e0b90a9f76fba3d209ba9a0668 Mon Sep 17 00:00:00 2001 From: Dario Date: Mon, 2 Dec 2024 00:28:03 -0300 Subject: [PATCH] Skip drawing scanlines when height is 0. --- UnleashedRecomp/ui/installer_wizard.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UnleashedRecomp/ui/installer_wizard.cpp b/UnleashedRecomp/ui/installer_wizard.cpp index 0f7a6679..054b22e9 100644 --- a/UnleashedRecomp/ui/installer_wizard.cpp +++ b/UnleashedRecomp/ui/installer_wizard.cpp @@ -191,6 +191,10 @@ static void DrawScanlineBars() constexpr uint32_t OUTLINE_COLOR = IM_COL32(115, 178, 104, 255); float height = Scale(105.0f) * ComputeMotionInstaller(g_appearTime, g_disappearTime, 0.0, SCANLINES_ANIMATION_DURATION); + if (height < 1e-6f) + { + return; + } auto &res = ImGui::GetIO().DisplaySize; auto drawList = ImGui::GetForegroundDrawList();