diff --git a/src/raygui.h b/src/raygui.h index 1859a71..a6a9f92 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -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;