2
0
Эх сурвалжийг харах

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

fix textbox bug
Ray 6 жил өмнө
parent
commit
e50ffd9242
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  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';
                     }
                 }
             }