channellist.cpp: show pic instead of miniTV in radiomode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8a7687abe1
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-02-18 (Mon, 18 Feb 2013)

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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2013-02-18 21:00:19 +01:00
parent 7add27227a
commit 544cec7f7f

View File

@@ -2032,7 +2032,12 @@ void CChannelList::paint()
if (g_settings.channellist_additional == 2) // with miniTV
{
// 5px offset - same value as in list below
paint_pig(x+width+5, y+theight+5, pig_width-10, pig_height-10);
if(CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_tv) {
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());