Ver Fonte

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

fix textbox bug
Ray há 6 anos atrás
pai
commit
e50ffd9242
1 ficheiros alterados com 1 adições e 0 exclusões
  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';
                     }
                 }
             }