mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-29 03:00:05 +00:00
Comments and reduced ImGuiTextEditState.InitialText[] to 3 KB (assuming average use case of UTF-8 uses 3 bytes charracters)
This commit is contained in:
parent
ceb4da2038
commit
4d78c5c9ab
2 changed files with 2 additions and 3 deletions
|
|
@ -958,7 +958,7 @@ struct ImGuiTextEditState
|
|||
{
|
||||
ImGuiID Id; // widget id owning the text state
|
||||
ImWchar Text[1024]; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer.
|
||||
char InitialText[1024*4+1]; // backup of end-user buffer at the time of focus (in UTF-8, unaltered)
|
||||
char InitialText[1024*3+1]; // backup of end-user buffer at the time of focus (in UTF-8, unaltered)
|
||||
size_t CurLenA, CurLenW; // we need to maintain our buffer length in both UTF-8 and wchar format.
|
||||
size_t BufSizeA; // end-user buffer size, <= 1024 (or increase above)
|
||||
float Width; // widget width
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue