diff options
author | jmarshallnz <jmarshallnz@svn> | 2009-10-01 09:02:18 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2009-10-01 09:02:18 +0000 |
commit | 220f6b6878dbf7fdcc7ef86feda950c363550771 (patch) | |
tree | 3b0293773308a86b1a56e28eb5ddb3c5c7b73446 /guilib/GUIListItem.cpp | |
parent | 89e39d619c39aff3fb9f1636277ca9e788348770 (diff) |
fixed: Scrolling of some labels wasn't working (info labels based on static content).
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23284 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIListItem.cpp')
-rw-r--r-- | guilib/GUIListItem.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/guilib/GUIListItem.cpp b/guilib/GUIListItem.cpp index 9aabebfe69..e0de5f0894 100644 --- a/guilib/GUIListItem.cpp +++ b/guilib/GUIListItem.cpp @@ -63,6 +63,8 @@ CGUIListItem::~CGUIListItem(void) void CGUIListItem::SetLabel(const CStdString& strLabel) { + if (m_strLabel == strLabel) + return; m_strLabel = strLabel; if (m_sortLabel.IsEmpty()) m_sortLabel = strLabel; @@ -77,6 +79,8 @@ const CStdString& CGUIListItem::GetLabel() const void CGUIListItem::SetLabel2(const CStdString& strLabel2) { + if (m_strLabel2 == strLabel2) + return; m_strLabel2 = strLabel2; SetInvalid(); } @@ -99,6 +103,8 @@ const CStdString& CGUIListItem::GetSortLabel() const void CGUIListItem::SetThumbnailImage(const CStdString& strThumbnail) { + if (m_strThumbnailImage == strThumbnail) + return; m_strThumbnailImage = strThumbnail; SetInvalid(); } @@ -110,6 +116,8 @@ const CStdString& CGUIListItem::GetThumbnailImage() const void CGUIListItem::SetIconImage(const CStdString& strIcon) { + if (m_strIcon == strIcon) + return; m_strIcon = strIcon; SetInvalid(); } @@ -121,10 +129,10 @@ const CStdString& CGUIListItem::GetIconImage() const void CGUIListItem::SetOverlayImage(GUIIconOverlay icon, bool bOnOff) { - if (bOnOff) - m_overlayIcon = GUIIconOverlay((int)(icon)+1); - else - m_overlayIcon = icon; + GUIIconOverlay newIcon = (bOnOff) ? GUIIconOverlay((int)(icon)+1) : icon; + if (m_overlayIcon == newIcon) + return; + m_overlayIcon = newIcon; SetInvalid(); } |