mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-30 05:05:17 -05:00
ImStrv: detect and fixed misuses of CalcTextSize() old signature. (9321)
For IMGUI_DISABLE_OBSOLETE_FUNCTIONS only.
This commit is contained in:
@@ -3099,7 +3099,7 @@ float ImGui::TableGetHeaderAngledMaxLabelWidth()
|
||||
for (int column_n = 0; column_n < table->ColumnsCount; column_n++)
|
||||
if (IM_BITARRAY_TESTBIT(table->EnabledMaskByIndex, column_n))
|
||||
if (table->Columns[column_n].Flags & ImGuiTableColumnFlags_AngledHeader)
|
||||
width = ImMax(width, CalcTextSize(TableGetColumnName(table, column_n), NULL, true).x);
|
||||
width = ImMax(width, CalcTextSize(TableGetColumnName(table, column_n), true).x);
|
||||
return width + g.Style.CellPadding.y * 2.0f; // Swap padding
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user