Selaa lähdekoodia

Update raygui.h

Ray 2 vuotta sitten
vanhempi
commit
60e216283d
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      src/raygui.h

+ 4 - 4
src/raygui.h

@@ -236,9 +236,9 @@
 #define RAYGUI_H
 
 #define RAYGUI_VERSION_MAJOR 3
-#define RAYGUI_VERSION_MINOR 5
+#define RAYGUI_VERSION_MINOR 6
 #define RAYGUI_VERSION_PATCH 0
-#define RAYGUI_VERSION  "3.5"
+#define RAYGUI_VERSION  "3.6-dev"
 
 #if !defined(RAYGUI_STANDALONE)
     #include "raylib.h"
@@ -2268,8 +2268,8 @@ bool GuiTextBox(Rectangle bounds, char *text, int bufferSize, bool editMode)
                     // Move backward text from cursor position
                     for (int i = (textBoxCursorIndex - prevCodepointSize); i < textLength; i++) text[i] = text[i + prevCodepointSize];
 
-                    // Prevent textBoxCursorIndex from decrementing past 0
-                    if(textBoxCursorIndex > 0)
+                    // Prevent cursor index from decrementing past 0
+                    if (textBoxCursorIndex > 0)
                     {
                         textBoxCursorIndex -= codepointSize;
                         textLength -= codepointSize;