diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-08-07 08:15:08 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-08-07 08:15:08 +0000 |
commit | 678c5c8cf6c2da146549d82eadf5234872c420e5 (patch) | |
tree | 87aa27f7740c39098164f074c27b5577d23c34fe /guilib/GUIProgressControl.cpp | |
parent | 6308c9dca68b5bb6c409dd492787f72b69ba135f (diff) |
cleanup: get rid of unused <rangemin>,<rangemax> parameters to the progress control
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32569 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIProgressControl.cpp')
-rw-r--r-- | guilib/GUIProgressControl.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/guilib/GUIProgressControl.cpp b/guilib/GUIProgressControl.cpp index 98f57fff79..836b3e8aa3 100644 --- a/guilib/GUIProgressControl.cpp +++ b/guilib/GUIProgressControl.cpp @@ -28,7 +28,7 @@ CGUIProgressControl::CGUIProgressControl(int parentID, int controlID, const CTextureInfo& leftTexture, const CTextureInfo& midTexture, const CTextureInfo& rightTexture, - const CTextureInfo& overlayTexture, float min, float max, + const CTextureInfo& overlayTexture, bool reveal) : CGUIControl(parentID, controlID, posX, posY, width, height) , m_guiBackground(posX, posY, width, height, backGroundTexture) @@ -37,8 +37,6 @@ CGUIProgressControl::CGUIProgressControl(int parentID, int controlID, , m_guiRight(posX, posY, width, height, rightTexture) , m_guiOverlay(posX, posY, width, height, overlayTexture) { - m_RangeMin = min; - m_RangeMax = max; m_fPercent = 0; m_iInfoCode = 0; ControlType = GUICONTROL_PROGRESS; @@ -60,18 +58,8 @@ void CGUIProgressControl::Render() { if (!IsDisabled()) { - if (m_iInfoCode ) - { + if (m_iInfoCode) m_fPercent = (float)g_infoManager.GetInt(m_iInfoCode); - if ((m_RangeMax - m_RangeMin)> 0 && (m_RangeMax != 100 && m_RangeMin != 0) ) - { - if (m_fPercent > m_RangeMax) - m_fPercent = m_RangeMax; - if (m_fPercent < m_RangeMin) - m_fPercent = m_RangeMin; - m_fPercent = ((100*(m_fPercent - m_RangeMin)) / (m_RangeMax - m_RangeMin)); - } - } if (m_fPercent < 0.0f) m_fPercent = 0.0f; if (m_fPercent > 100.0f) m_fPercent = 100.0f; |