From 44e4ca5f7762747977ea48dba66d7f003df41d48 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Mon, 15 Dec 2025 20:13:12 -0600 Subject: [PATCH] feat(ui): handle alpha in CSimpleFontString::AddShadow --- src/ui/simple/CSimpleFontString.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/simple/CSimpleFontString.cpp b/src/ui/simple/CSimpleFontString.cpp index a37c7c8..d552705 100644 --- a/src/ui/simple/CSimpleFontString.cpp +++ b/src/ui/simple/CSimpleFontString.cpp @@ -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;