mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user