Skip to content

Commit

Permalink
Fix icon padding adjustment in GetTextWidth (raysan5#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolunmi authored May 31, 2024
1 parent faed14c commit 76f006b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raygui.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76f006b

Please sign in to comment.