imgui_utils: Make text shadows thicker for Original 4:3 (#385)

This commit is contained in:
Michael 2025-02-12 11:35:44 -08:00 committed by GitHub
parent 9ec6bd95e1
commit a8e78c21d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();