From 6ec722a73d766eabd1d6d08b1811be4ac949fae7 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 25 Jan 2010 06:17:32 +0000 Subject: [PATCH] fix ChannelName in recordmode git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@210 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/1c9851713a0d9b6d7bc0ab32a997fb354c3ff4bb Author: Jacek Jendrzej Date: 2010-01-25 (Mon, 25 Jan 2010) ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 4499390dd..3d44d7937 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -300,18 +300,18 @@ void CInfoViewer::showRecordIcon (const bool show) { recordModeActive = CNeutrinoApp::getInstance ()->recordingstatus || shift_timer; if (recordModeActive) { - ChanNameX = BoxStartX + ChanWidth + 20; + int ChanName_X = BoxStartX + ChanWidth + 20; if (show) { - frameBuffer->paintIcon (autoshift ? "ats.raw" : NEUTRINO_ICON_BUTTON_RED, ChanNameX, BoxStartY + 12); + frameBuffer->paintIcon (autoshift ? "ats.raw" : NEUTRINO_ICON_BUTTON_RED, ChanName_X, BoxStartY + 12); if (!autoshift && !shift_timer) { int chanH = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight (); - frameBuffer->paintBoxRel (ChanNameX + 28 + SHADOW_OFFSET, BoxStartY + 12 + SHADOW_OFFSET, 300, 20, COL_INFOBAR_SHADOW_PLUS_0); - frameBuffer->paintBoxRel (ChanNameX + 28, BoxStartY + 12, 300, 20, COL_INFOBAR_PLUS_0); - g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->RenderString (ChanNameX + 30, BoxStartY + 12 + chanH, 300, ext_channel_name.c_str (), COL_INFOBAR, 0, true); + frameBuffer->paintBoxRel (ChanName_X + 28 + SHADOW_OFFSET, BoxStartY + 12 + SHADOW_OFFSET, 300, 20, COL_INFOBAR_SHADOW_PLUS_0); + frameBuffer->paintBoxRel (ChanName_X + 28, BoxStartY + 12, 300, 20, COL_INFOBAR_PLUS_0); + g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->RenderString (ChanName_X + 30, BoxStartY + 12 + chanH, 300, ext_channel_name.c_str (), COL_INFOBAR, 0, true); } else - frameBuffer->paintBackgroundBoxRel (ChanNameX + 28, BoxStartY + 12, 300 + SHADOW_OFFSET, 20 + SHADOW_OFFSET); + frameBuffer->paintBackgroundBoxRel (ChanName_X + 28, BoxStartY + 12, 300 + SHADOW_OFFSET, 20 + SHADOW_OFFSET); } else { - frameBuffer->paintBackgroundBoxRel (ChanNameX, BoxStartY + 10, 20, 20); + frameBuffer->paintBackgroundBoxRel (ChanName_X, BoxStartY + 10, 20, 20); } } }