mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-04 04:00:07 +00:00
ImStrv: moved double char* function signatures under #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS blocks.
This commit is contained in:
parent
b50672a003
commit
932c281377
4 changed files with 51 additions and 46 deletions
|
|
@ -1654,8 +1654,8 @@ void ImGui::TableSetupColumn(ImStrv label, ImGuiTableColumnFlags flags, float in
|
|||
{
|
||||
char zero_terminator = 0;
|
||||
column->NameOffset = (ImS16)table->ColumnsNames.size();
|
||||
table->ColumnsNames.append(label.Begin, label.End);
|
||||
table->ColumnsNames.append(&zero_terminator, &zero_terminator + 1);
|
||||
table->ColumnsNames.append(label);
|
||||
table->ColumnsNames.append(ImStrv(&zero_terminator, &zero_terminator + 1));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3184,7 +3184,7 @@ void ImGui::TableHeader(ImStrv label)
|
|||
label = "";
|
||||
ImGuiID id = window->GetID(label);
|
||||
label.End = FindRenderedTextEnd(label);
|
||||
ImVec2 label_size = CalcTextSize(label.Begin, label.End, true);
|
||||
ImVec2 label_size = CalcTextSize(label, true);
|
||||
ImVec2 label_pos = window->DC.CursorPos;
|
||||
|
||||
// If we already got a row height, there's use that.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue