- channellist.cpp: show pic instead of miniTV in radiomode

This commit is contained in:
svenhoefer
2013-02-18 21:00:19 +01:00
parent 782c9f107c
commit 8a7687abe1

View File

@@ -2032,8 +2032,13 @@ void CChannelList::paint()
if (g_settings.channellist_additional == 2) // with miniTV if (g_settings.channellist_additional == 2) // with miniTV
{ {
// 5px offset - same value as in list below // 5px offset - same value as in list below
if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_tv) {
paint_pig(x+width+5, y+theight+5, pig_width-10, pig_height-10); paint_pig(x+width+5, y+theight+5, pig_width-10, pig_height-10);
} }
else if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_radio) {
g_PicViewer->DisplayImage(DATADIR "/neutrino/icons/radiomode.jpg", x+width+5, y+theight+5, pig_width-10, pig_height-10, frameBuffer->TM_NONE);
}
}
numwidth = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getRenderWidth(MaxChanNr().c_str()); numwidth = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getRenderWidth(MaxChanNr().c_str());