Skip to content

Commit

Permalink
progress control with reveal set to true didn't update correctly with…
Browse files Browse the repository at this point in the history
… dirty regions set to 1. fixes #13887
  • Loading branch information
Jonathan Marshall authored and davilla committed Jan 6, 2013
1 parent 8a69789 commit b29c2f2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions xbmc/guilib/GUIProgressControl.cpp
Expand Up @@ -242,7 +242,12 @@ bool CGUIProgressControl::UpdateLayout(void)
{
bChanged |= m_guiMid.SetWidth(m_width);
float x = posX, y = posY + offset, w = width, h = fScaleY * m_guiMid.GetTextureHeight();
m_guiMidClipRect = CRect(x, y, x + w, y + h);
CRect rect(x, y, x + w, y + h);
if (rect != m_guiMidClipRect)
{
m_guiMidClipRect = rect;
bChanged = true;
}
}
else
{
Expand Down Expand Up @@ -276,7 +281,12 @@ bool CGUIProgressControl::UpdateLayout(void)
{
bChanged |= m_guiMid.SetWidth(fScaleX * fFullWidth);
float x = posX, y = posY + offset, w = fScaleX * fWidth, h = fScaleY * m_guiMid.GetTextureHeight();
m_guiMidClipRect = CRect(x, y, x + w, y + h);
CRect rect(x, y, x + w, y + h);
if (rect != m_guiMidClipRect)
{
m_guiMidClipRect = rect;
bChanged = true;
}
}
else
{
Expand Down

0 comments on commit b29c2f2

Please sign in to comment.