mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Review formating
This commit is contained in:
15
src/raygui.h
15
src/raygui.h
@ -3050,23 +3050,24 @@ int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, in
|
|||||||
{
|
{
|
||||||
if (textValue[0] == '-')
|
if (textValue[0] == '-')
|
||||||
{
|
{
|
||||||
for(int i = 0 ; i < keyCount; i++ )
|
for (int i = 0 ; i < keyCount; i++)
|
||||||
{
|
{
|
||||||
textValue[i] = textValue[i + 1];
|
textValue[i] = textValue[i + 1];
|
||||||
}
|
}
|
||||||
keyCount--;
|
keyCount--;
|
||||||
valueHasChanged = true;
|
valueHasChanged = true;
|
||||||
}
|
}
|
||||||
else if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS -1){
|
else if (keyCount < RAYGUI_VALUEBOX_MAX_CHARS -1)
|
||||||
if (keyCount == 0){
|
{
|
||||||
|
if (keyCount == 0)
|
||||||
|
{
|
||||||
textValue[0] = '0';
|
textValue[0] = '0';
|
||||||
textValue[1] = '\0';
|
textValue[1] = '\0';
|
||||||
keyCount++;
|
keyCount++;
|
||||||
}
|
}
|
||||||
for(int i = keyCount ; i > -1; i-- )
|
|
||||||
{
|
for (int i = keyCount ; i > -1; i--) textValue[i + 1] = textValue[i];
|
||||||
textValue[i + 1] = textValue[i];
|
|
||||||
}
|
|
||||||
textValue[0] = '-';
|
textValue[0] = '-';
|
||||||
keyCount++;
|
keyCount++;
|
||||||
valueHasChanged = true;
|
valueHasChanged = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user