infoviewer: fix display of frequency for terrestrial channels; thx to Janus

Origin commit data
------------------
Branch: ni/coolstream
Commit: 041f56e443
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-10-30 (Tue, 30 Oct 2018)

Origin message was:
------------------
- infoviewer: fix display of frequency for terrestrial channels; thx to Janus

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-10-30 21:55:44 +01:00
parent 8546b23dbe
commit 71eb854f85

View File

@@ -1724,7 +1724,10 @@ void CInfoViewer::showSNR ()
polarisation = transponder::pol(CFEManager::getInstance()->getLiveFE()->getPolarization());
int frequency = CFEManager::getInstance()->getLiveFE()->getFrequency();
snprintf (freq, sizeof(freq), "%d.%d MHz %s", frequency / 1000, frequency % 1000, polarisation.c_str());
int freqfactor = 1000;
if (CFrontend::isTerr(CFEManager::getInstance()->getLiveFE()->getCurrentDeliverySystem()))
freqfactor = 1000000;
snprintf (freq, sizeof(freq), "%d.%d MHz %s", frequency / freqfactor, frequency % freqfactor, polarisation.c_str());
int freqWidth = g_SignalFont->getRenderWidth(freq);
if (freqWidth > numbox_maxtxtwidth)