mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
- infoviewer: fix overlaps on buttons while zapping
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user