From 61c7e115bfec71cdd60ddd5ea3b2cfd95b19a028 Mon Sep 17 00:00:00 2001 From: Michael <15317421+ActualMandM@users.noreply.github.com> Date: Sun, 9 Feb 2025 13:44:30 -0800 Subject: [PATCH] imgui_utils: Make text shadows thicker for Original 4:3 --- 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 bffcc1b4..7b8cf2ef 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();