diff options
author | Jonathan Marshall <jmarshall@never.you.mind> | 2014-02-18 12:05:05 +1300 |
---|---|---|
committer | Jonathan Marshall <jmarshall@never.you.mind> | 2014-02-18 12:05:05 +1300 |
commit | 7f05f0eb4bad4906d101e2323df09c73cecd9717 (patch) | |
tree | 2499f014570c760bc290d8092d6725660614926d | |
parent | 43a62fe36b4530c07efb8c6aa7dbdcf7c406af63 (diff) |
[rss] right to left scrolling wasn't done for RTL langauges since e470fb5ccd. Fixes #14928
-rw-r--r-- | xbmc/guilib/GUIRSSControl.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xbmc/guilib/GUIRSSControl.cpp b/xbmc/guilib/GUIRSSControl.cpp index b68e08b181..712e118426 100644 --- a/xbmc/guilib/GUIRSSControl.cpp +++ b/xbmc/guilib/GUIRSSControl.cpp @@ -113,10 +113,7 @@ void CGUIRSSControl::Process(unsigned int currentTime, CDirtyRegionList &dirtyre m_rtl = iter->second.rtl; m_vecUrls = iter->second.url; m_vecIntervals = iter->second.interval; - if (m_scrollInfo.pixelSpeed > 0 && m_rtl) - m_scrollInfo.pixelSpeed *= -1; - else if (m_scrollInfo.pixelSpeed < 0 && !m_rtl) - m_scrollInfo.pixelSpeed *= -1; + m_scrollInfo.SetSpeed(m_label.scrollSpeed * (m_rtl ? -1 : 1)); } dirty = true; @@ -149,7 +146,7 @@ void CGUIRSSControl::Process(unsigned int currentTime, CDirtyRegionList &dirtyre if ( m_stopped ) m_scrollInfo.SetSpeed(0); else - m_scrollInfo.SetSpeed(m_label.scrollSpeed); + m_scrollInfo.SetSpeed(m_label.scrollSpeed * (m_rtl ? -1 : 1)); if(m_label.font->UpdateScrollInfo(m_feed, m_scrollInfo)) dirty = true; |