aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIVisualisationControl.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/GUIVisualisationControl.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/GUIVisualisationControl.cpp')
-rw-r--r--guilib/GUIVisualisationControl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/guilib/GUIVisualisationControl.cpp b/guilib/GUIVisualisationControl.cpp
index 446864edce..3cbdb9d25a 100644
--- a/guilib/GUIVisualisationControl.cpp
+++ b/guilib/GUIVisualisationControl.cpp
@@ -197,6 +197,11 @@ void CGUIVisualisationControl::UpdateVisibility(const CGUIListItem *item)
FreeVisualisation();
}
+void CGUIVisualisationControl::SetInvalid()
+{
+ FreeResources();
+}
+
void CGUIVisualisationControl::Render()
{
if (m_pVisualisation == NULL)