xbmc/xbmc — pull request #826 by pieh (2012-03-29 13:02:16+00:00)
Title: Reset invalidated flag only if we processed control

This is fix for scrollbar not updating its range if it's not visible (one Jezz_X found in confluence-lite and global search).

Reason for this bug is simple - we don't process not visible controls, but we reset invalid flag every frame - so control simply misses that invalid flag (in scrollbar case - it won't adjust nib size and position).

Alternative fix would be to process not visible control if it has invalided flag set

if (IsVisible() || m_invalidated)
Process(currentTime, dirtyregions);