ImStrv: detect and fixed misuses of CalcTextSize() old signature. (9321)

This commit is contained in:
ocornut
2026-06-24 16:14:54 +02:00
parent 929ab0898c
commit 4e25c21f17
4 changed files with 10 additions and 7 deletions

View File

@@ -17487,7 +17487,7 @@ bool ImGui::DebugBreakButton(const char* label, const char* description_of_locat
ImGuiContext& g = *GImGui;
const ImGuiID id = window->GetID(label);
const ImVec2 label_size = CalcTextSize(label, NULL, true);
const ImVec2 label_size = CalcTextSize(label, true);
ImVec2 pos = window->DC.CursorPos + ImVec2(0.0f, window->DC.CurrLineTextBaseOffset);
ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x * 2.0f, label_size.y);