-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecated ImGui::Begin(...) and ImGui::SetNextWindowBgAlpha(...) handle alpha<0 differently #1568
Comments
Hmm, I think you shouldn't need/want to call
It was using the normal alpha from the corresponding window background color, most often |
Oh I see the problem, sorry. It is a problem when called through the old |
Thank you! |
Fixed, my bad. |
Basically, as far as I can understand, now
ImGui::SetNextWindowBgAlpha(bg_alpha);
is used when the deprecated version ofImGui::Begin(...,bg_alpha,...)
gets called.But now if we pass for example
bg_alpha=-1.f
we get a transparent window.Previously the default alpha value of 0.7f (as far as I remember) was used.
In short I think this is breaking some old deprecated code, unless we handle negative values correctly in
ImGui::SetNextWindowBgAlpha(bg_alpha);
.The text was updated successfully, but these errors were encountered: