mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Update raygui.h
This commit is contained in:
@ -3175,7 +3175,7 @@ int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float
|
|||||||
//char textValue[RAYGUI_VALUEBOX_MAX_CHARS + 1] = "\0";
|
//char textValue[RAYGUI_VALUEBOX_MAX_CHARS + 1] = "\0";
|
||||||
//snprintf(textValue, sizeof(textValue), "%2.2f", *value);
|
//snprintf(textValue, sizeof(textValue), "%2.2f", *value);
|
||||||
|
|
||||||
Rectangle textBounds = {0};
|
Rectangle textBounds = { 0 };
|
||||||
if (text != NULL)
|
if (text != NULL)
|
||||||
{
|
{
|
||||||
textBounds.width = (float)GuiGetTextWidth(text) + 2;
|
textBounds.width = (float)GuiGetTextWidth(text) + 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user