feat(ui): handle alpha in CSimpleFontString::AddShadow

This commit is contained in:
fallenoak 2025-12-15 20:13:12 -06:00
parent 41641778d9
commit 44e4ca5f77
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -86,7 +86,8 @@ void CSimpleFontString::AddShadow(const CImVector& shadowColor, const C2Vector&
if (this->m_string) { if (this->m_string) {
auto shadowColor = this->m_shadowColor; auto shadowColor = this->m_shadowColor;
// TODO alpha manipulation auto alpha = (this->m_parent->m_alpha * this->m_parent->alphaBD) / 255;
shadowColor.a = (shadowColor.a * alpha) / 255;
auto shadowOffset = this->m_shadowOffset; auto shadowOffset = this->m_shadowOffset;
shadowOffset.x *= this->m_layoutScale; shadowOffset.x *= this->m_layoutScale;