mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): handle alpha in CSimpleFontString::AddShadow
This commit is contained in:
parent
41641778d9
commit
44e4ca5f77
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user