Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

progress control with reveal set to true didn't update correctly with…

… dirty regions set to 1. fixes #13887
  • Loading branch information...
commit 88e6ffa3b70b8a0957080cb278e52ed84b15481f 1 parent 9b9df98
Jonathan Marshall authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 xbmc/guilib/GUIProgressControl.cpp
14 xbmc/guilib/GUIProgressControl.cpp
View
@@ -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
{
@@ -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
{
Please sign in to comment.
Something went wrong with that request. Please try again.