Fix the wrong outline condition.

This commit is contained in:
Skyth 2024-12-09 20:51:57 +03:00
parent 8ca852583b
commit f5c6582065

View file

@ -207,7 +207,7 @@ static void DrawTextWithOutline(const ImFont* font, float fontSize, const ImVec2
{
for (int32_t j = -outlineSize + 1; j < outlineSize; j++)
{
if (i != 0 && j != 0)
if (i != 0 || j != 0)
drawList->AddText(font, fontSize, { pos.x + i, pos.y + j }, outlineColor, text);
}
}