-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
W11/DX9 color alpha doesn't show correctly i.e. ColorEdit4 #8336
Comments
This was broken by cd6c83c, specifically by this change to -template<typename T> static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * t); }
+template<typename T> static inline T ImLerp(T a, T b, float t) { return (T)(a + (b - a) * (T)t); } Not sure what warning it's trying to silence, but that change is definitely not right. It's causing Lines 2567 to 2574 in 7ae7c90
|
Thank you David for finding this! The warning it aimed to fix is listed as #8241 |
…8241). [@PathogenDavid] ImAlphaBlendColors() was broken by ImLerp() change. (cd6c83c)
…8241). [@PathogenDavid] ImAlphaBlendColors() was broken by ImLerp() change. (cd6c83c)
Fixed by 2af26b7, thank you David! |
Version/Branch of Dear ImGui:
Version 1.91.8 WIP (19172), Branch: master
Back-ends:
imgui_impl_win32.cpp + imgui_impl_dx9.cpp
Compiler, OS:
W11 + VS2022
Full config/build information:
Details:
My Issue/Question: No matter how I set alpha value (0-254), the alpha window is still containing white & grey squares. Only if alpha is 255 the white & grey squares are being opaque and displaying the color.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: