From 38236a5513c8ceb112b6d2e944c6993d37eb5cae Mon Sep 17 00:00:00 2001 From: gulrak Date: Thu, 9 Jun 2022 22:42:33 +0200 Subject: [PATCH] Fix merge bug introduced with #211 (#212) --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index 9a6293b..38440de 100644 --- a/src/raygui.h +++ b/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)