diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index f03ab8a6f..4cd7f54a5 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1095,7 +1095,7 @@ void CInfoViewer::loop(bool show_dot) ecmInfoBox_hide(); } else { g_settings.show_ecm = 1; - infoViewerBB->showIcon_CA_Status(0); + infoViewerBB->paint_ca_icons(0); } } g_RCInput->clearRCMsg(); @@ -1174,7 +1174,7 @@ void CInfoViewer::loop(bool show_dot) showRadiotext(); infoViewerBB->showIcon_16_9(); - //infoViewerBB->showIcon_CA_Status(0); + //infoViewerBB->paint_ca_icons(0); //NI if(file_exists("/tmp/ecm.info")) { @@ -1182,7 +1182,7 @@ void CInfoViewer::loop(bool show_dot) //printf("CInfoViewer::loop() ecm.info.tmp = %s\nCInfoViewer::loop() ecm.info = %s\n",md5_ecmInfo.c_str(),md5_tmp.c_str()); if(md5_ecmInfo != md5_tmp) { puts("CInfoViewer::loop() CA reload"); - infoViewerBB->showIcon_CA_Status(0); + infoViewerBB->paint_ca_icons(0); } } infoViewerBB->showIcon_Resolution(); @@ -1497,9 +1497,9 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data) } else if (msg == NeutrinoMessages::EVT_ZAP_GOTPIDS) { if ((*(t_channel_id *) data) == current_channel_id) { if (is_visible && showButtonBar) { + //infoViewerBB->paint_ca_icons(0); infoViewerBB->showIcon_VTXT(); infoViewerBB->showIcon_SubT(); - //infoViewerBB->showIcon_CA_Status(0); infoViewerBB->showIcon_Resolution(); infoViewerBB->showIcon_Tuner(); } @@ -1514,7 +1514,7 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data) //chanready = 1; showSNR (); if (is_visible && showButtonBar) - infoViewerBB->showIcon_CA_Status(0); + infoViewerBB->paint_ca_icons(0); //Set_CA_Status (data); return messages_return::handled; } else if (msg == NeutrinoMessages::EVT_TIMER) { @@ -2173,7 +2173,7 @@ void CInfoViewer::killTitle() void CInfoViewer::Set_CA_Status (int /*Status*/) { if (is_visible && showButtonBar) - infoViewerBB->showIcon_CA_Status(1); + infoViewerBB->paint_ca_icons(1); } #endif /****************************************************************************** diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index 51a834d5e..f580d16f3 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -471,15 +471,16 @@ void CInfoViewerBB::paintshowButtonBar(bool noTimer/*=false*/) if (g_settings.infobar_casystem_display < 2) paint_cam_icons(); +#if 0 + scrambledCheck(true); +#endif + paint_ca_icons(0); + // Icons, starting from right showIcon_SubT(); showIcon_VTXT(); showIcon_DD(); showIcon_16_9(); -#if 0 - scrambledCheck(true); -#endif - showIcon_CA_Status(0); showIcon_Resolution(); showIcon_Tuner(); showSysfsHdd(); @@ -643,7 +644,7 @@ void CInfoViewerBB::showIcon_Resolution() showBBIcons(CInfoViewerBB::ICON_RES, icon_name); } -void CInfoViewerBB::showOne_CAIcon() +void CInfoViewerBB::showIcon_CA() { std::string sIcon = ""; #if 0 @@ -735,7 +736,7 @@ void CInfoViewerBB::showBarHdd(int percent) } } -void CInfoViewerBB::paint_ca_icons(int caid, const char *icon, int &icon_space_offset) +void CInfoViewerBB::paint_ca_icon(int caid, const char *icon, int &icon_space_offset) { char buf[20]; int endx = g_InfoViewer->BoxEndX - OFFSET_INNER_MID - (g_settings.infobar_casystem_frame ? FRAME_WIDTH_MIN + OFFSET_INNER_SMALL : 0); @@ -800,7 +801,7 @@ void CInfoViewerBB::paint_ca_icons(int caid, const char *icon, int &icon_space_o } } -void CInfoViewerBB::showIcon_CA_Status(int notfirst) +void CInfoViewerBB::paint_ca_icons(int notfirst) { //NI int acaid = 0; @@ -809,10 +810,11 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst) if (g_settings.infobar_casystem_display == 3) return; + if(NeutrinoModes::mode_ts == CNeutrinoApp::getInstance()->getMode() && !CMoviePlayerGui::getInstance().timeshift){ if (g_settings.infobar_casystem_display == 2) { fta = true; - showOne_CAIcon(); + showIcon_CA(); } return; } @@ -830,11 +832,11 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst) if(!g_InfoViewer->chanready) { if (g_settings.infobar_casystem_display == 2) { fta = true; - showOne_CAIcon(); + showIcon_CA(); } else if(g_settings.infobar_casystem_display == 0) { for (int i = 0; i < (int)(sizeof(caids)/sizeof(int)); i++) { - paint_ca_icons(caids[i], white, icon_space_offset); + paint_ca_icon(caids[i], white, icon_space_offset); } } return; @@ -846,7 +848,7 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst) if (g_settings.infobar_casystem_display == 2) { fta = channel->camap.empty(); - showOne_CAIcon(); + showIcon_CA(); return; } @@ -882,14 +884,14 @@ void CInfoViewerBB::showIcon_CA_Status(int notfirst) } //NI - decode info if(i == (int)(sizeof(caids)/sizeof(int))-1) { - paint_ca_icons(caids[i], fta ? "fta" : dec_icon_name[decode], icon_space_offset); + paint_ca_icon(caids[i], fta ? "fta" : dec_icon_name[decode], icon_space_offset); continue; } if(g_settings.infobar_casystem_display == 0) - paint_ca_icons(caids[i], (found ? (dcaid ? green : yellow) : white), icon_space_offset); //NI + paint_ca_icon(caids[i], (found ? (dcaid ? green : yellow) : white), icon_space_offset); //NI else if(found) - paint_ca_icons(caids[i], (dcaid ? green : yellow), icon_space_offset); //NI + paint_ca_icon(caids[i], (dcaid ? green : yellow), icon_space_offset); //NI } //NI @@ -1021,14 +1023,14 @@ void CInfoViewerBB::scrambledCheck(bool force) } if ((scrambledErr != scrambledErrSave) || (scrambledNoSig != scrambledNoSigSave) || force) { - showIcon_CA_Status(0); + paint_ca_icons(0); showIcon_Resolution(); scrambledErrSave = scrambledErr; scrambledNoSigSave = scrambledNoSig; } } -//NI CA Anzeige +//NI void CInfoViewerBB::paint_cam_icons() { std::ostringstream buf; diff --git a/src/gui/infoviewer_bb.h b/src/gui/infoviewer_bb.h index a34c42636..4d9cd426a 100644 --- a/src/gui/infoviewer_bb.h +++ b/src/gui/infoviewer_bb.h @@ -121,9 +121,8 @@ class CInfoViewerBB void getBBIconInfo(void); bool checkBBIcon(const char * const icon, int *w, int *h); - void paint_ca_icons(int, const char*, int&); + void paint_ca_icon(int, const char*, int&); void paint_ca_bar(); - void showOne_CAIcon(); static void* scrambledThread(void *arg); void scrambledCheck(bool force=false); @@ -141,8 +140,8 @@ class CInfoViewerBB int bottom_bar_offset, InfoHeightY_Info; bool is_visible; + void paint_ca_icons(int); void showSysfsHdd(void); - void showIcon_CA_Status(int); void showIcon_16_9(); void showIcon_RadioText(bool rt_available); void showIcon_VTXT(); @@ -150,6 +149,7 @@ class CInfoViewerBB void showIcon_Resolution(); void showIcon_Tuner(void); void showIcon_DD(void); + void showIcon_CA(); void showBBButtons(bool paintFooter = false); void paintshowButtonBar(bool noTimer = false); void getBBButtonInfo(void);