aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
Diffstat (limited to 'guilib')
-rw-r--r--guilib/GUIButtonControl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/guilib/GUIButtonControl.cpp b/guilib/GUIButtonControl.cpp
index 2ed3c5ef2d..4c7690d061 100644
--- a/guilib/GUIButtonControl.cpp
+++ b/guilib/GUIButtonControl.cpp
@@ -100,6 +100,7 @@ void CGUIButtonControl::RenderText()
{
m_label.SetMaxRect(m_posX, m_posY, m_width, m_height);
m_label.SetText(m_info.GetLabel(m_parentID));
+ m_label.SetScrolling(HasFocus());
// render the second label if it exists
CStdString label2(m_info2.GetLabel(m_parentID));
@@ -108,10 +109,9 @@ void CGUIButtonControl::RenderText()
m_label2.SetMaxRect(m_posX, m_posY, m_width, m_height);
m_label2.SetText(label2);
m_label2.SetAlign(XBFONT_RIGHT | (m_label.GetLabelInfo().align & XBFONT_CENTER_Y) | XBFONT_TRUNCATED);
+ m_label2.SetScrolling(HasFocus());
- // TODO: call a function to compute the "best" render rect from these two
- CRect leftLabel(m_label.GetRenderRect());
- CRect rightLabel(m_label2.GetRenderRect());
+ CGUILabel::CheckAndCorrectOverlap(m_label, m_label2);
m_label2.SetColor(GetTextColor());
m_label2.Render();