From: xhaggi Date: Thu, 28 Nov 2013 22:59:10 +0000 (+0100) Subject: [epg] fix: hide progress indicator if go forward in time X-Git-Tag: Gotham_alpha11~198^2 X-Git-Url: http://code.vuplus.com/gitweb/?a=commitdiff_plain;h=fbea7eb92e7a76b45bd5d56d89ac33feedbe7407;p=vuplus_xbmc [epg] fix: hide progress indicator if go forward in time --- diff --git a/xbmc/epg/GUIEPGGridContainer.cpp b/xbmc/epg/GUIEPGGridContainer.cpp index f035115..4183d00 100644 --- a/xbmc/epg/GUIEPGGridContainer.cpp +++ b/xbmc/epg/GUIEPGGridContainer.cpp @@ -547,15 +547,18 @@ void CGUIEPGGridContainer::ProcessProgressIndicator(unsigned int currentTime, CD CPoint originRuler = CPoint(m_rulerPosX, m_rulerPosY) + m_renderOffset; float width = ((CDateTime::GetUTCDateTime() - m_gridStart).GetSecondsTotal() * m_blockSize) / (MINSPERBLOCK * 60) - m_programmeScrollOffset; - if (m_orientation == VERTICAL) + if (width > 0) { - m_guiProgressIndicatorTexture.SetWidth(width); + m_guiProgressIndicatorTexture.SetVisible(true); m_guiProgressIndicatorTexture.SetPosition(originRuler.x, originRuler.y); + if (m_orientation == VERTICAL) + m_guiProgressIndicatorTexture.SetWidth(width); + else + m_guiProgressIndicatorTexture.SetHeight(width); } else { - m_guiProgressIndicatorTexture.SetHeight(width); - m_guiProgressIndicatorTexture.SetPosition(originRuler.x, originRuler.y); + m_guiProgressIndicatorTexture.SetVisible(false); } m_guiProgressIndicatorTexture.Process(currentTime);