RenderNavCursor: take rounding as input. Removed ImGuiNavRenderCursorFlags_NoRounding.

Toward #7589
This commit is contained in:
ocornut
2026-06-24 18:33:43 +02:00
parent 26432cfdc6
commit 0e355af09e
4 changed files with 14 additions and 8 deletions

View File

@@ -3395,7 +3395,7 @@ void ImGui::TableHeader(const char* label)
if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0)
TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn);
}
RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact | ImGuiNavRenderCursorFlags_NoRounding);
RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact, 0.0f);
if (held)
table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n;
window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f;