aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
authormonkeyman_67156 <monkeyman_67156@svn>2010-11-02 23:08:20 +0000
committermonkeyman_67156 <monkeyman_67156@svn>2010-11-02 23:08:20 +0000
commit5ffe36f349c44210d87a67c2530f74317d1c053a (patch)
tree46ca372878992b35555bf2b10782d8e6c358a875 /guilib
parent77247024d1451b52c5e7f578965ddb74a45daf4a (diff)
fixed: Unused alpha value in button scroller, closes #10612
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@35141 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r--guilib/GUIButtonScroller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/guilib/GUIButtonScroller.cpp b/guilib/GUIButtonScroller.cpp
index cfc75acd9f..afe422b93f 100644
--- a/guilib/GUIButtonScroller.cpp
+++ b/guilib/GUIButtonScroller.cpp
@@ -719,7 +719,8 @@ void CGUIButtonScroller::RenderItem(float &posX, float &posY, int &iOffset, bool
color_t color = (m_label.focusedColor && iOffset == GetActiveButton()) ? m_label.focusedColor : m_label.textColor;
color_t blendedAlpha = (alpha * ((color & 0xff000000) >> 24)) / 255;
color_t blendedColor = (blendedAlpha << 24) | (color & 0xFFFFFF);
- color_t shadowColor = (alpha << 24) | (m_label.shadowColor & 0xFFFFFF);
+ blendedAlpha = (alpha * ((m_label.shadowColor & 0xff000000) >> 24)) / 255;
+ color_t shadowColor = (blendedAlpha << 24) | (m_label.shadowColor & 0xFFFFFF);
CGUITextLayout::DrawText(m_label.font, fPosX, fPosY, blendedColor, shadowColor, label, m_label.align);
}
else