mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-31 11:19:18 -05:00
Update raygui.h
This commit is contained in:
@ -3703,15 +3703,13 @@ bool GuiCheckIconPixel(int iconId, int x, int y)
|
|||||||
static int GetTextWidth(const char *text)
|
static int GetTextWidth(const char *text)
|
||||||
{
|
{
|
||||||
Vector2 size = { 0 };
|
Vector2 size = { 0 };
|
||||||
|
|
||||||
int textSize = TextLength(text);
|
|
||||||
int textIconOffset = 0;
|
int textIconOffset = 0;
|
||||||
|
|
||||||
if ((text != NULL) && (text[0] != '\0'))
|
if ((text != NULL) && (text[0] != '\0'))
|
||||||
{
|
{
|
||||||
if (text[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] == '#')
|
if (text[i] == '#')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user