From f301912920031cfee4a2de2d3d8cfa98471bb1ac Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 3 Sep 2014 15:23:29 +0200 Subject: [PATCH] - infoviewer: don't show sig/snr progressbars in webtv mode --- src/gui/infoviewer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 016c65d7a..f70c94412 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1449,11 +1449,9 @@ void CInfoViewer::showSNR () { if (! is_visible) return; - char percent[10]; - uint16_t ssig, ssnr; /* right now, infobar_show_channellogo == 3 is the trigger for signal bars etc. TODO: decouple this */ - if (! fileplay && ( g_settings.infobar_show_channellogo == 3 || g_settings.infobar_show_channellogo == 5 || g_settings.infobar_show_channellogo == 6 )) { + if (!fileplay && !IS_WEBTV(channel_id) && ( g_settings.infobar_show_channellogo == 3 || g_settings.infobar_show_channellogo == 5 || g_settings.infobar_show_channellogo == 6 )) { int chanH = g_SignalFont->getHeight(); int freqStartY = BoxStartY + 2 * chanH - 3; if ((newfreq && chanready) || SDT_freq_update) { @@ -1472,6 +1470,9 @@ void CInfoViewer::showSNR () g_SignalFont->RenderString (3 + BoxStartX + ((ChanWidth - satNameWidth) / 2), BoxStartY + 2 * chanH - 3, satNameWidth, freq, SDT_freq_update ? COL_COLORED_EVENTS_TEXT:COL_INFOBAR_TEXT); SDT_freq_update = false; } + + char percent[10]; + uint16_t ssig, ssnr; int sw, snr, sig, posx, posy; int height;