Fix icon padding adjustment in GetTextWidth (#408)

This commit is contained in:
kolunmi 2024-05-31 02:17:22 -07:00 committed by GitHub
parent faed14c12b
commit 76f006b9d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4699,7 +4699,7 @@ static int GetTextWidth(const char *text)
}
}
if (textIconOffset > 0) textSize.x += (RAYGUI_ICON_SIZE - ICON_TEXT_PADDING);
if (textIconOffset > 0) textSize.x += (RAYGUI_ICON_SIZE + ICON_TEXT_PADDING);
}
return (int)textSize.x;