1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-12 10:11:00 +01:00

Undo Begin() return false with Alpha==0.0, misleading at the moment

This commit is contained in:
ocornut 2014-08-18 13:18:32 +01:00
parent d6f6afabb3
commit c5dacee3a7

View File

@ -2183,9 +2183,7 @@ bool Begin(const char* name, bool* open, ImVec2 size, float fill_alpha, ImGuiWin
}
// Return collapsed so that user can perform an early out optimisation
const bool hidden = g.Style.Alpha <= 0.0f;
const bool collapsed = window->Collapsed;
return hidden || !collapsed;
return !window->Collapsed;
}
void End()