Clarify support for "%s" shortcuts in functions taking format strings. (#9404, #3466, #6846)

This commit is contained in:
ocornut
2026-05-19 18:50:39 +02:00
parent 3e7b79aa17
commit 904b663184
2 changed files with 4 additions and 1 deletions

View File

@@ -266,6 +266,8 @@ void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags)
}
}
// Note that all functions taking format strings in the API may be passed ("%s", text) or ("%.*s", text_len, text),
// which will automatically bypass the formatter.
void ImGui::TextUnformatted(const char* text, const char* text_end)
{
TextEx(text, text_end, ImGuiTextFlags_NoWidthForLargeClippedText);