mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
MultiSelect: simplify clearing ImGuiMultiSelectTempData.
This commit is contained in:
parent
33fc61a091
commit
3d41994a63
2 changed files with 3 additions and 2 deletions
|
|
@ -7129,6 +7129,7 @@ ImGuiMultiSelectIO* ImGui::BeginMultiSelect(ImGuiMultiSelectFlags flags)
|
|||
ImGuiWindow* window = g.CurrentWindow;
|
||||
ImGuiMultiSelectTempData* ms = &g.MultiSelectTempData[0];
|
||||
IM_ASSERT(g.CurrentMultiSelect == NULL); // No recursion allowed yet (we could allow it if we deem it useful)
|
||||
IM_STATIC_ASSERT(offsetof(ImGuiMultiSelectTempData, IO) == 0); // Clear() relies on that.
|
||||
g.CurrentMultiSelect = ms;
|
||||
|
||||
// FIXME: BeginFocusScope()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue