mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
infoviewer: show corresponding icon in webtv/webradio mode
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7a222e3b02
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-18 (Sat, 18 Sep 2021)
Origin message was:
------------------
- infoviewer: show corresponding icon in webtv/webradio mode
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1732,6 +1732,29 @@ void CInfoViewer::showSNR ()
|
|||||||
sigbox->setFrontEnd(CFEManager::getInstance()->getLiveFE());
|
sigbox->setFrontEnd(CFEManager::getInstance()->getLiveFE());
|
||||||
sigbox->paint(CC_SAVE_SCREEN_NO);
|
sigbox->paint(CC_SAVE_SCREEN_NO);
|
||||||
}
|
}
|
||||||
|
// TODO: better integration
|
||||||
|
else if (IS_WEBCHAN(current_channel_id) && ( g_settings.infobar_show_channellogo == 3 || g_settings.infobar_show_channellogo == 5 || g_settings.infobar_show_channellogo == 6 ))
|
||||||
|
{
|
||||||
|
const char *icon = NULL;
|
||||||
|
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
|
switch (mode)
|
||||||
|
{
|
||||||
|
case NeutrinoModes::mode_webtv:
|
||||||
|
icon = NEUTRINO_ICON_HINT_WEBTV;
|
||||||
|
break;
|
||||||
|
case NeutrinoModes::mode_webradio:
|
||||||
|
icon = NEUTRINO_ICON_HINT_WEBRADIO;
|
||||||
|
break;
|
||||||
|
default: // NeutrinoMode not set yet
|
||||||
|
icon = NEUTRINO_ICON_PLAY;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
int icon_w = 0,icon_h = 0;
|
||||||
|
frameBuffer->getIconSize(icon, &icon_w, &icon_h);
|
||||||
|
int icon_x = BoxStartX + ChanWidth / 2 - icon_w / 2;
|
||||||
|
int icon_y = BoxStartY + g_SignalFont->getHeight() + (ChanHeight - g_SignalFont->getHeight()) / 2 - icon_h / 2;
|
||||||
|
frameBuffer->paintIcon(icon, icon_x, icon_y);
|
||||||
|
}
|
||||||
if(showButtonBar)
|
if(showButtonBar)
|
||||||
infoViewerBB->showSysfsHdd();
|
infoViewerBB->showSysfsHdd();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user