Internals: rename ImGuiNextWindowData::Flags to HasFlags for consistency and to reduce mistakes.

This commit is contained in:
ocornut
2025-02-07 22:48:31 +01:00
parent 4982602f6f
commit e5668b8c73
4 changed files with 39 additions and 36 deletions

View File

@@ -415,7 +415,7 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG
// Reset scroll if we are reactivating it
if ((previous_flags & (ImGuiTableFlags_ScrollX | ImGuiTableFlags_ScrollY)) == 0)
if ((g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasScroll) == 0)
if ((g.NextWindowData.HasFlags & ImGuiNextWindowDataFlags_HasScroll) == 0)
SetNextWindowScroll(ImVec2(0.0f, 0.0f));
// Create scrolling region (without border and zero window padding)