imgui_utils: Make text shadows thicker for Original 4:3

This commit is contained in:
Michael 2025-02-09 13:44:30 -08:00
parent 9ec6bd95e1
commit 61c7e115bf

View file

@ -317,6 +317,12 @@ void DrawTextWithShadow(const ImFont* font, float fontSize, const ImVec2& pos, I
offset = Scale(offset); offset = Scale(offset);
// Original 4:3 has thicker text shadows.
if (Config::AspectRatio == EAspectRatio::OriginalNarrow)
{
radius *= 1.5f;
}
SetOutline(radius); SetOutline(radius);
drawList->AddText(font, fontSize, { pos.x + offset, pos.y + offset }, shadowColour, text); drawList->AddText(font, fontSize, { pos.x + offset, pos.y + offset }, shadowColour, text);
ResetOutline(); ResetOutline();