Răsfoiți Sursa

Update raygui.h

Ray 1 an în urmă
părinte
comite
9a9edd89b4
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      src/raygui.h

+ 3 - 1
src/raygui.h

@@ -2582,7 +2582,9 @@ int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode)
 
                     // Move backward text from cursor position
                     for (int i = (textBoxCursorIndex - prevCodepointSize); i < textLength; i++) text[i] = text[i + prevCodepointSize];
-
+                    
+                    // TODO Check: >= cursor+codepointsize and <= length-codepointsize
+                    
                     // Prevent cursor index from decrementing past 0
                     if (textBoxCursorIndex > 0)
                     {