From 9f2545e6bb003845c34be627dc7e1fb477616556 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 18 Nov 2014 10:01:34 +0000 Subject: [PATCH] Fixed comment --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index de0294d5..667e6533 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -4049,7 +4049,7 @@ bool ImGui::RadioButton(const char* label, int* v, int v_button) return pressed; } -// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, ASCII, fixed-width font) +// Wrapper for stb_textedit.h to edit text (our wrapper is for: statically sized buffer, single-line, UTF-8) static int STB_TEXTEDIT_STRINGLEN(const STB_TEXTEDIT_STRING* obj) { return (int)ImStrlenW(obj->Text); } static ImWchar STB_TEXTEDIT_GETCHAR(const STB_TEXTEDIT_STRING* obj, int idx) { return obj->Text[idx]; } static float STB_TEXTEDIT_GETWIDTH(STB_TEXTEDIT_STRING* obj, int line_start_idx, int char_idx) { (void)line_start_idx; return obj->Font->CalcTextSizeW(obj->FontSize, FLT_MAX, &obj->Text[char_idx], &obj->Text[char_idx]+1, NULL).x; }