Update raygui.h

This commit is contained in:
Ray
2022-02-26 16:32:53 +01:00
parent c8d8fb5a86
commit ce42af4858

View File

@ -3703,15 +3703,13 @@ bool GuiCheckIconPixel(int iconId, int x, int y)
static int GetTextWidth(const char *text)
{
Vector2 size = { 0 };
int textSize = TextLength(text);
int textIconOffset = 0;
if ((text != NULL) && (text[0] != '\0'))
{
if (text[0] == '#')
{
for (int i = 1; (text[i] != NULL) && (i < 5); i++)
for (int i = 1; (text[i] != '\0') && (i < 5); i++)
{
if (text[i] == '#')
{