mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-12 16:41:42 +00:00
ImStrv: detect and fixed misuses of CalcTextSize() old signature. (9321)
For IMGUI_DISABLE_OBSOLETE_FUNCTIONS only.
This commit is contained in:
@@ -17200,7 +17200,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user