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

This commit is contained in:
fallenoak committed 2025-12-15 20:13:12 -06:00
1 parent 41641778d9
commit 44e4ca5f77
1 file changed
+2 -1
+2 -1
View File
@@ -86,7 +86,8 @@ void CSimpleFontString::AddShadow(const CImVector& shadowColor, const C2Vector&
if (this->m_string) {
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;
shadowOffset.x *= this->m_layoutScale;