From a8e78c21d14afa49bdbdb212daaaa95f86a56146 Mon Sep 17 00:00:00 2001 From: Michael <15317421+ActualMandM@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:35:44 -0800 Subject: [PATCH] imgui_utils: Make text shadows thicker for Original 4:3 (#385) --- UnleashedRecomp/ui/imgui_utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UnleashedRecomp/ui/imgui_utils.cpp b/UnleashedRecomp/ui/imgui_utils.cpp index bffcc1b..7b8cf2e 100644 --- a/UnleashedRecomp/ui/imgui_utils.cpp +++ b/UnleashedRecomp/ui/imgui_utils.cpp @@ -317,6 +317,12 @@ void DrawTextWithShadow(const ImFont* font, float fontSize, const ImVec2& pos, I offset = Scale(offset); + // Original 4:3 has thicker text shadows. + if (Config::AspectRatio == EAspectRatio::OriginalNarrow) + { + radius *= 1.5f; + } + SetOutline(radius); drawList->AddText(font, fontSize, { pos.x + offset, pos.y + offset }, shadowColour, text); ResetOutline();