From 3baba27374518d9bae9e107ae8ed8a8dcb6a9c16 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 22 Jan 2011 10:00:25 +0000 Subject: [PATCH] fix clock osd git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1039 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/80f321484a264fdc7477f007b1b772158b7478e2 Author: Jacek Jendrzej Date: 2011-01-22 (Sat, 22 Jan 2011) Origin message was: ------------------ -fix clock osd git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1039 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/timeosd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/timeosd.cpp b/src/gui/timeosd.cpp index 2585dfd14..ca5b12830 100644 --- a/src/gui/timeosd.cpp +++ b/src/gui/timeosd.cpp @@ -42,7 +42,7 @@ CTimeOSD::CTimeOSD() m_mode=MODE_ASC; GetDimensions(); if (! timescale) - timescale = new CProgressBar(true, BARLEN, 32, 40, 100, 70, true); + timescale = new CProgressBar(true, BARLEN, m_height -5, 40, 100, 70, true); } CTimeOSD::~CTimeOSD() @@ -60,7 +60,7 @@ void CTimeOSD::show(time_t time_show) visible = true; m_time_dis = time(NULL); m_time_show = time_show; - frameBuffer->paintBoxRel(m_xend - m_width - t1, m_y, m_width, m_height, COL_INFOBAR_SHADOW_PLUS_0,RADIUS_SMALL);//border + frameBuffer->paintBoxRel(m_xstart-2, m_y, 2+BARLEN+2, m_height, COL_INFOBAR_SHADOW_PLUS_0); //border timescale->reset(); update(); } @@ -130,6 +130,6 @@ void CTimeOSD::hide() frameBuffer->paintBackgroundBoxRel(m_xend - m_width - t1, m_y, m_width, m_height); visible=false; timescale->reset(); - frameBuffer->paintBackgroundBoxRel(m_xstart, m_y, BARLEN, m_height); + frameBuffer->paintBackgroundBoxRel(m_xstart-2, m_y, 2+BARLEN+2, m_height); //clear border }