Skip to content
This repository
Browse code

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
authored January 04, 2013

Showing 1 changed file with 12 additions and 2 deletions. Show diff stats Hide diff stats

  1. 14  xbmc/guilib/GUIProgressControl.cpp
14  xbmc/guilib/GUIProgressControl.cpp
@@ -242,7 +242,12 @@ bool CGUIProgressControl::UpdateLayout(void)
242 242
     {
243 243
       bChanged |= m_guiMid.SetWidth(m_width);
244 244
       float x = posX, y = posY + offset, w = width, h = fScaleY * m_guiMid.GetTextureHeight();
245  
-      m_guiMidClipRect = CRect(x, y, x + w, y + h);
  245
+      CRect rect(x, y, x + w, y + h);
  246
+      if (rect != m_guiMidClipRect)
  247
+      {
  248
+        m_guiMidClipRect = rect;
  249
+        bChanged = true;
  250
+      }
246 251
     }
247 252
     else
248 253
     {
@@ -276,7 +281,12 @@ bool CGUIProgressControl::UpdateLayout(void)
276 281
     {
277 282
       bChanged |= m_guiMid.SetWidth(fScaleX * fFullWidth);
278 283
       float x = posX, y = posY + offset, w =  fScaleX * fWidth, h = fScaleY * m_guiMid.GetTextureHeight();
279  
-      m_guiMidClipRect = CRect(x, y, x + w, y + h);
  284
+      CRect rect(x, y, x + w, y + h);
  285
+      if (rect != m_guiMidClipRect)
  286
+      {
  287
+        m_guiMidClipRect = rect;
  288
+        bChanged = true;
  289
+      }
280 290
     }
281 291
     else
282 292
     {

0 notes on commit 88e6ffa

Please sign in to comment.
Something went wrong with that request. Please try again.