diff options
author | jmarshallnz <jmarshallnz@svn> | 2009-10-25 05:51:23 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2009-10-25 05:51:23 +0000 |
commit | 5c4c090371178f2532d31cd2c6a520f218d413b5 (patch) | |
tree | d4aa40c971eb237bb0a759b25720f04b885fb24b /guilib/GUISliderControl.cpp | |
parent | 0f3f19a7d22800c659013335bea80b2b04ecb83a (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/GUISliderControl.cpp')
-rw-r--r-- | guilib/GUISliderControl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/guilib/GUISliderControl.cpp b/guilib/GUISliderControl.cpp index 8d648d828d..a3a3a7a5e1 100644 --- a/guilib/GUISliderControl.cpp +++ b/guilib/GUISliderControl.cpp @@ -275,6 +275,14 @@ void CGUISliderControl::AllocResources() m_guiMidFocus.AllocResources(); } +void CGUISliderControl::SetInvalid() +{ + CGUIControl::SetInvalid(); + m_guiBackground.SetInvalid(); + m_guiMid.SetInvalid(); + m_guiMidFocus.SetInvalid(); +} + bool CGUISliderControl::HitTest(const CPoint &point) const { if (m_guiBackground.HitTest(point)) return true; |