Răsfoiți Sursa

Merge pull request #37 from simonwashere/fix-textbox-bug

fix textbox bug
Ray 6 ani în urmă
părinte
comite
e50ffd9242
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      src/raygui.h

+ 1 - 0
src/raygui.h

@@ -2709,6 +2709,7 @@ RAYGUIDEF bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editM
                     {
                         text[keyCount] = (char)key;
                         keyCount++;
+                        text[keyCount] = '\0';
                     }
                 }
             }