From 78f24a38680c61028015eb4cfd2c34c5b96bc9fa Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 23 Jun 2021 09:59:37 +0200 Subject: [PATCH] Update text_editor.c --- examples/text_editor/text_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/text_editor/text_editor.c b/examples/text_editor/text_editor.c index 06104d2..3bb10c1 100644 --- a/examples/text_editor/text_editor.c +++ b/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,