浏览代码

Update text_editor.c

Ray 4 年之前
父节点
当前提交
78f24a3868
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/text_editor/text_editor.c

+ 1 - 1
examples/text_editor/text_editor.c

@@ -211,7 +211,7 @@ bool GuiTextEditor(Rectangle bounds, char *text, int textSize, bool editMode)
     {
         // Get next codepoint from byte string and glyph index in font
         int codepointByteCount = 0;
-        int codepoint = GetNextCodepoint(&text[i], &codepointByteCount);
+        int codepoint = GetCodepoint(&text[i], &codepointByteCount);
         int index = GetGlyphIndex(font, codepoint);
         
         Rectangle rec = { bounds.x + textOffsetX + font.chars[index].offsetX*scaleFactor,