Skip to content

Commit

Permalink
Revert "DragScalarN, SliderScalarN, InputScalarN, PushMultiItemsWidth…
Browse files Browse the repository at this point in the history
…s: Added when component <= 0. (ocornut#7095)"

This reverts commit 69f524b.
  • Loading branch information
Madspark-Studios committed Dec 11, 2023
1 parent 318560a commit 881c7c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9860,7 +9860,6 @@ void ImGui::PushMultiItemsWidths(int components, float w_full)
{
ImGuiContext& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
IM_ASSERT(components > 0);
const ImGuiStyle& style = g.Style;
const float w_item_one = ImMax(1.0f, IM_TRUNC((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components));
const float w_item_last = ImMax(1.0f, IM_TRUNC(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1)));
Expand Down

0 comments on commit 881c7c4

Please sign in to comment.