diff options
author | Matthias Kortstiege <mkortstiege@users.noreply.github.com> | 2015-07-29 19:58:53 +0200 |
---|---|---|
committer | Matthias Kortstiege <mkortstiege@users.noreply.github.com> | 2015-07-29 19:58:53 +0200 |
commit | dcce393e394fecb784642f46098d9ae62b28baec (patch) | |
tree | c8c5c7699738303647e9d88361682e932e400f65 | |
parent | 8e4209f94a4ea5415c57c0e18f429c6e215266c4 (diff) | |
parent | 38c4f803548f85fda9cdca77ad3025257fdd15c8 (diff) |
Merge pull request #7662 from mkortstiege/revert-radio-overlap
[guilib] revert fix label overlap in radiobutton control
-rw-r--r-- | xbmc/guilib/GUIRadioButtonControl.cpp | 18 | ||||
-rw-r--r-- | xbmc/guilib/GUIRadioButtonControl.h | 1 |
2 files changed, 0 insertions, 19 deletions
diff --git a/xbmc/guilib/GUIRadioButtonControl.cpp b/xbmc/guilib/GUIRadioButtonControl.cpp index 3fd982c889..ddb0111710 100644 --- a/xbmc/guilib/GUIRadioButtonControl.cpp +++ b/xbmc/guilib/GUIRadioButtonControl.cpp @@ -98,24 +98,6 @@ void CGUIRadioButtonControl::Process(unsigned int currentTime, CDirtyRegionList CGUIButtonControl::Process(currentTime, dirtyregions); } -void CGUIRadioButtonControl::ProcessText(unsigned int currentTime) -{ - bool changed = false; - - if (m_bInvalidated) - { - changed |= m_label.SetMaxRect(m_posX, m_posY, m_width - m_imgRadioOnFocus.GetWidth(), m_height); - changed |= m_label.SetText(m_info.GetLabel(GetParentID())); - } - - changed |= m_label.SetScrolling(HasFocus()); - changed |= m_label.SetColor(GetTextColor()); - changed |= m_label.Process(currentTime); - - if (changed) - MarkDirtyRegion(); -} - bool CGUIRadioButtonControl::OnAction(const CAction &action) { if (action.GetID() == ACTION_SELECT_ITEM) diff --git a/xbmc/guilib/GUIRadioButtonControl.h b/xbmc/guilib/GUIRadioButtonControl.h index ee0dd79bf3..84be79039e 100644 --- a/xbmc/guilib/GUIRadioButtonControl.h +++ b/xbmc/guilib/GUIRadioButtonControl.h @@ -63,7 +63,6 @@ public: bool IsSelected() const { return m_bSelected; }; protected: virtual bool UpdateColors(); - virtual void ProcessText(unsigned int currentTime); CGUITexture m_imgRadioOnFocus; CGUITexture m_imgRadioOnNoFocus; CGUITexture m_imgRadioOffFocus; |