Fix icon padding adjustment in GetTextWidth
(#408)
This commit is contained in:
parent
faed14c12b
commit
76f006b9d0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user