mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-31 11:19:18 -05:00
Fix icon padding adjustment in GetTextWidth (#408)
This commit is contained in:
@ -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;
|
return (int)textSize.x;
|
||||||
|
|||||||
Reference in New Issue
Block a user