From ff866904d0804f8ab23db039b649427709757375 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 26 Jul 2025 21:50:00 +0200 Subject: [PATCH] Review formating --- src/raygui.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 8422fe0..b79b2fe 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -3050,23 +3050,24 @@ int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, in { if (textValue[0] == '-') { - for(int i = 0 ; i < keyCount; i++ ) + for (int i = 0 ; i < keyCount; i++) { textValue[i] = textValue[i + 1]; } 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;