GUI: add support for L/R, use transponder::pol to display polarization

This commit is contained in:
[CST] Focus
2012-04-16 16:56:26 +04:00
parent 827bf0edc3
commit c14741dcd2
6 changed files with 26 additions and 20 deletions

View File

@@ -1569,7 +1569,7 @@ void CInfoViewer::showSNR ()
CZapitClient::CCurrentServiceInfo si = g_Zapit->getCurrentServiceInfo ();
std::string polarisation;
if (g_info.delivery_system == DVB_S)
polarisation = (si.polarisation) ? "V" : "H";
polarisation = transponder::pol(si.polarisation);
else
polarisation = "";
snprintf (freq, sizeof(freq), "%d.%d MHz %s", si.tsfrequency / 1000, si.tsfrequency % 1000, polarisation.c_str());