mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 11:57:00 +00:00
Undo Begin() return false with Alpha==0.0, misleading at the moment
This commit is contained in:
parent
d6f6afabb3
commit
c5dacee3a7
@ -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
|
// Return collapsed so that user can perform an early out optimisation
|
||||||
const bool hidden = g.Style.Alpha <= 0.0f;
|
return !window->Collapsed;
|
||||||
const bool collapsed = window->Collapsed;
|
|
||||||
return hidden || !collapsed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void End()
|
void End()
|
||||||
|
Loading…
Reference in New Issue
Block a user