浏览代码

Fix merge bug introduced with #211 (#212)

gulrak 3 年之前
父节点
当前提交
38236a5513
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/raygui.h

+ 1 - 1
src/raygui.h

@@ -2320,7 +2320,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
             int codepoint = GetCharPressed();
             int textLength = (int)strlen(text);     // Length in bytes (UTF-8 string)
             int byteSize = 0;
-            const char *textUTF8 = CodepointToUTF8(key, &byteSize)
+            const char *textUTF8 = CodepointToUTF8(codepoint, &byteSize);
 
             // Introduce characters
             if ((textLength + byteSize) < textSize)