diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index b326b7dca..6ebcd0298 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1368,7 +1368,7 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data) if ((*(t_channel_id *) data) == current_channel_id) { if (is_visible && showButtonBar) { infoViewerBB->showIcon_DD(); - infoViewerBB->showBBButtons(); // in case button text has changed + infoViewerBB->showBBButtons(true /*paintFooter*/); // in case button text has changed } if (g_settings.radiotext_enable && g_Radiotext && !g_RemoteControl->current_PIDs.APIDs.empty() && ((CNeutrinoApp::getInstance()->getMode()) == NeutrinoMessages::mode_radio)) g_Radiotext->setPid(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].pid); @@ -1377,7 +1377,7 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data) } else if (msg == NeutrinoMessages::EVT_ZAP_GOT_SUBSERVICES) { if ((*(t_channel_id *) data) == current_channel_id) { if (is_visible && showButtonBar) - infoViewerBB->showBBButtons(); // in case button text has changed + infoViewerBB->showBBButtons(true /*paintFooter*/); // in case button text has changed } return messages_return::handled; } else if (msg == NeutrinoMessages::EVT_ZAP_SUB_COMPLETE) { diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index b6c766264..f91408b3b 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -377,7 +377,7 @@ void CInfoViewerBB::getBBButtonInfo() } } -void CInfoViewerBB::showBBButtons(const int modus) +void CInfoViewerBB::showBBButtons(bool paintFooter) { if (!is_visible) return; @@ -406,7 +406,7 @@ void CInfoViewerBB::showBBButtons(const int modus) int buf_y = BBarY; int buf_w = g_InfoViewer->BoxEndX-buf_x; int buf_h = InfoHeightY_Info; - if (modus != -1) { + if (paintFooter) { pixbuf = new fb_pixel_t[buf_w * buf_h]; //printf("\nbuf_x: %d, buf_y: %d, buf_w: %d, buf_h: %d, pixbuf: %p\n \n", buf_x, buf_y, buf_w, buf_h, pixbuf); frameBuffer->SaveScreen(buf_x, buf_y, buf_w, buf_h, pixbuf); diff --git a/src/gui/infoviewer_bb.h b/src/gui/infoviewer_bb.h index 1c690a677..81961a018 100644 --- a/src/gui/infoviewer_bb.h +++ b/src/gui/infoviewer_bb.h @@ -143,7 +143,7 @@ class CInfoViewerBB void showIcon_Resolution(); void showIcon_Tuner(void); void showIcon_DD(void); - void showBBButtons(const int modus=-1); + void showBBButtons(bool paintFooter = false); void paintshowButtonBar(); void getBBButtonInfo(void); void reset_allScala(void);