Window: Fix SetNextWindowBgAlpha(1.0f) failing to override alpha component. (#3007)

This commit is contained in:
omar
2020-01-30 15:13:36 +01:00
parent 0a23582718
commit 6e1f8be07b
4 changed files with 8 additions and 3 deletions

View File

@ -939,7 +939,7 @@ struct ImGuiNextWindowData
ImRect SizeConstraintRect;
ImGuiSizeCallback SizeCallback;
void* SizeCallbackUserData;
float BgAlphaVal;
float BgAlphaVal; // Override background alpha
ImVec2 MenuBarOffsetMinVal; // *Always on* This is not exposed publicly, so we don't clear it.
ImGuiNextWindowData() { memset(this, 0, sizeof(*this)); }