aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUISpinControl.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-03-26 09:43:00 +0000
committerjmarshallnz <jmarshallnz@svn>2010-03-26 09:43:00 +0000
commitadef801ce56c83e4798845db586deb743992e569 (patch)
tree64b814a5c5d67fc0112855ebb80bd19bff25f08c /guilib/GUISpinControl.cpp
parent6d22e83986fa752e550ff7ff839c0542eafb2860 (diff)
added: Allow immediate deletion of resources via CGUIControl::FreeResources(true);
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28827 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUISpinControl.cpp')
-rw-r--r--guilib/GUISpinControl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/guilib/GUISpinControl.cpp b/guilib/GUISpinControl.cpp
index f57ee9423d..d1d78137e7 100644
--- a/guilib/GUISpinControl.cpp
+++ b/guilib/GUISpinControl.cpp
@@ -318,13 +318,13 @@ void CGUISpinControl::AllocResources()
m_imgspinUpFocus.SetPosition(m_posX + m_imgspinDownFocus.GetWidth(), m_posY);
}
-void CGUISpinControl::FreeResources()
+void CGUISpinControl::FreeResources(bool immediately)
{
- CGUIControl::FreeResources();
- m_imgspinUp.FreeResources();
- m_imgspinUpFocus.FreeResources();
- m_imgspinDown.FreeResources();
- m_imgspinDownFocus.FreeResources();
+ CGUIControl::FreeResources(immediately);
+ m_imgspinUp.FreeResources(immediately);
+ m_imgspinUpFocus.FreeResources(immediately);
+ m_imgspinDown.FreeResources(immediately);
+ m_imgspinDownFocus.FreeResources(immediately);
m_iTypedPos = 0;
strcpy(m_szTyped, "");
}