aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIRadioButtonControl.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-10-25 05:51:23 +0000
committerjmarshallnz <jmarshallnz@svn>2009-10-25 05:51:23 +0000
commit5c4c090371178f2532d31cd2c6a520f218d413b5 (patch)
treed4aa40c971eb237bb0a759b25720f04b885fb24b /guilib/GUIRadioButtonControl.cpp
parent0f3f19a7d22800c659013335bea80b2b04ecb83a (diff)
changed: Invalidate controls when changing the window size, rather than being lazy and reallocate them. Thanks for the kick up the pants Martin :)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23993 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIRadioButtonControl.cpp')
-rw-r--r--guilib/GUIRadioButtonControl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/guilib/GUIRadioButtonControl.cpp b/guilib/GUIRadioButtonControl.cpp
index 43111eb571..ed43caab56 100644
--- a/guilib/GUIRadioButtonControl.cpp
+++ b/guilib/GUIRadioButtonControl.cpp
@@ -95,6 +95,13 @@ void CGUIRadioButtonControl::DynamicResourceAlloc(bool bOnOff)
m_imgRadioOff.DynamicResourceAlloc(bOnOff);
}
+void CGUIRadioButtonControl::SetInvalid()
+{
+ CGUIButtonControl::SetInvalid();
+ m_imgRadioOn.SetInvalid();
+ m_imgRadioOff.SetInvalid();
+}
+
void CGUIRadioButtonControl::SetPosition(float posX, float posY)
{
CGUIButtonControl::SetPosition(posX, posY);