diff options
author | theuni <theuni-nospam-@xbmc.org> | 2012-02-03 05:41:58 -0500 |
---|---|---|
committer | theuni <theuni-nospam-@xbmc.org> | 2012-02-03 05:56:03 -0500 |
commit | 79e3d590f270d249a69ecf2fc12b108e0252a6eb (patch) | |
tree | 74f9d507f468d63b0249741854bc641dbc73993f | |
parent | 0a690e852378bbc76733b9894ac05a1cb38e6927 (diff) |
d-r: fixed scrolling labels were always marked dirty
We only need to mark if we're mid-scroll.
-rw-r--r-- | xbmc/guilib/GUILabel.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xbmc/guilib/GUILabel.cpp b/xbmc/guilib/GUILabel.cpp index bd06c0bc82..259b757446 100644 --- a/xbmc/guilib/GUILabel.cpp +++ b/xbmc/guilib/GUILabel.cpp @@ -79,10 +79,8 @@ color_t CGUILabel::GetColor() const bool CGUILabel::Process(unsigned int currentTime) { - // TODO Add the correct processing - bool overFlows = (m_renderRect.Width() + 0.5f < m_textLayout.GetTextWidth()); // 0.5f to deal with floating point rounding issues - return (overFlows && m_scrolling); + return (overFlows && m_scrolling && m_scrollInfo.characterPos); } void CGUILabel::Render() |