InputText: InputTextCalcTextSize() uses ImFontCalcTextSizeEx().

(for #3237, #952, #1062, #7363)
This commit is contained in:
ocornut
2025-08-27 21:59:25 +02:00
parent 56189cd814
commit 3cc7d1c81a
2 changed files with 8 additions and 53 deletions

View File

@@ -5554,7 +5554,7 @@ ImVec2 ImFontCalcTextSizeEx(ImFont* font, float size, float max_width, float wra
ImVec2 ImFont::CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** out_remaining)
{
return ImFontCalcTextSizeEx(this, size, max_width, wrap_width, text_begin, NULL, text_end, out_remaining, NULL, ImDrawTextFlags_None);
return ImFontCalcTextSizeEx(this, size, max_width, wrap_width, text_begin, text_end, text_end, out_remaining, NULL, ImDrawTextFlags_None);
}
// Note: as with every ImDrawList drawing function, this expects that the font atlas texture is bound.