aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUILabelControl.cpp
diff options
context:
space:
mode:
authorLars Op den Kamp <lars@opdenkamp.eu>2010-10-16 15:07:20 +0200
committerLars Op den Kamp <lars@opdenkamp.eu>2011-01-04 12:19:41 +0100
commit2c81a1063d956cbe49b3460076b1ce3ef6505518 (patch)
treed220a48c74ef86d608bc40d432ce96f046504899 /guilib/GUILabelControl.cpp
parent07db21c48d60933b45c702d333572ed8f4629fdc (diff)
merge pvr-testing2 svn rev 32591 into trunk
Diffstat (limited to 'guilib/GUILabelControl.cpp')
-rw-r--r--guilib/GUILabelControl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/guilib/GUILabelControl.cpp b/guilib/GUILabelControl.cpp
index f7e53b3ce4..9ef7ec3a42 100644
--- a/guilib/GUILabelControl.cpp
+++ b/guilib/GUILabelControl.cpp
@@ -139,6 +139,13 @@ float CGUILabelControl::GetWidth() const
return m_width;
}
+void CGUILabelControl::SetWidth(float width)
+{
+ m_width = width;
+ m_label.SetMaxRect(m_posX, m_posY, m_width, m_height);
+ CGUIControl::SetWidth(m_width);
+}
+
bool CGUILabelControl::OnMessage(CGUIMessage& message)
{
if ( message.GetControlId() == GetID() )