Skip to content

Commit

Permalink
d-r: fixed scrolling labels were always marked dirty
Browse files Browse the repository at this point in the history
We only need to mark if we're mid-scroll.
  • Loading branch information
theuni committed Feb 3, 2012
1 parent 0a690e8 commit 79e3d59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xbmc/guilib/GUILabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 79e3d59

Please sign in to comment.