use ENABLE_PIP for pip code

This commit is contained in:
[CST] Focus
2013-03-05 18:34:47 +04:00
parent 57cdcd8379
commit cbfa6f88c5
7 changed files with 38 additions and 24 deletions

View File

@@ -778,18 +778,16 @@ int CChannelList::show()
loop=false;
}
}
#ifdef BOXMODEL_APOLLO
#ifdef ENABLE_PIP
else if ( msg == CRCInput::RC_play) {
if(SameTP() && CRecordManager::getInstance()->GetRecordMode(chanlist[selected]->channel_id) == CRecordManager::RECMODE_OFF) {
if (CZapit::getInstance()->GetPipChannelID() == chanlist[selected]->getChannelID()) {
CZapit::getInstance()->StopPip();
paint();
} else {
if (CZapit::getInstance()->StartPip(chanlist[selected]->getChannelID()))
paint();
else
if (!CZapit::getInstance()->StartPip(chanlist[selected]->getChannelID()))
DisplayErrorMessage(g_Locale->getText(LOCALE_VIDEOMENU_PIP_ERROR));
}
paint();
}
}
#endif
@@ -1876,7 +1874,7 @@ void CChannelList::paintItem(int pos)
rec_icon = NEUTRINO_ICON_REC;
else if (rec_mode & CRecordManager::RECMODE_TSHIFT)
rec_icon = NEUTRINO_ICON_AUTO_SHIFT;
#ifdef BOXMODEL_APOLLO
#ifdef ENABLE_PIP
else if (chanlist[curr]->channel_id == CZapit::getInstance()->GetPipChannelID()) {
int h;
frameBuffer->getIconSize(NEUTRINO_ICON_PIP, &ChannelList_Rec, &h);