Review formating

This commit is contained in:
Ray
2025-07-26 21:50:00 +02:00
parent 99b37e4d4f
commit ff866904d0

View File

@ -3057,16 +3057,17 @@ int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, in
keyCount--;
valueHasChanged = true;
}
else if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS -1){
if (keyCount == 0){
else if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS -1)
{
if (keyCount == 0)
{
textValue[0] = '0';
textValue[1] = '\0';
keyCount++;
}
for(int i = keyCount ; i > -1; i-- )
{
textValue[i + 1] = textValue[i];
}
for (int i = keyCount ; i > -1; i--) textValue[i + 1] = textValue[i];
textValue[0] = '-';
keyCount++;
valueHasChanged = true;