mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
neutrino channellist: show also ts mode channels
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1732 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: c0c8e95219
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-10-01 (Sat, 01 Oct 2011)
Origin message was:
------------------
*neutrino channellist: show also ts mode channels
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1732 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1863,11 +1863,23 @@ void CChannelList::paintItem(int pos)
|
|||||||
p_event = &chan->currentEvent;
|
p_event = &chan->currentEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//record check
|
||||||
|
int rec_mode = CRecordManager::getInstance()->GetRecordMode(chanlist[curr]->channel_id);
|
||||||
|
|
||||||
|
//set recording icon
|
||||||
|
const char * rec_icon = "";
|
||||||
|
if (rec_mode == CRecordManager::RECMODE_REC)
|
||||||
|
rec_icon = NEUTRINO_ICON_REC;
|
||||||
|
else if (rec_mode == CRecordManager::RECMODE_TSHIFT)
|
||||||
|
rec_icon = NEUTRINO_ICON_AUTO_SHIFT;
|
||||||
|
else if (rec_mode == CRecordManager::RECMODE_REC_TSHIFT)
|
||||||
|
rec_icon = NEUTRINO_ICON_AUTO_SHIFT_GRAY;
|
||||||
|
|
||||||
//calculating icons
|
//calculating icons
|
||||||
int icon_x = (x+width-15-2) - RADIUS_LARGE/2;
|
int icon_x = (x+width-15-2) - RADIUS_LARGE/2;
|
||||||
int r_icon_h=0; int r_icon_w=0; int s_icon_h=0; int s_icon_w=0;
|
int r_icon_h=0; int r_icon_w=0; int s_icon_h=0; int s_icon_w=0;
|
||||||
frameBuffer->getIconSize(NEUTRINO_ICON_SCRAMBLED, &s_icon_w, &s_icon_h);
|
frameBuffer->getIconSize(NEUTRINO_ICON_SCRAMBLED, &s_icon_w, &s_icon_h);
|
||||||
frameBuffer->getIconSize(NEUTRINO_ICON_REC, &r_icon_w, &r_icon_h);
|
frameBuffer->getIconSize(rec_icon, &r_icon_w, &r_icon_h);
|
||||||
int r_icon_x = icon_x;
|
int r_icon_x = icon_x;
|
||||||
|
|
||||||
//paint scramble icon
|
//paint scramble icon
|
||||||
@@ -1876,9 +1888,9 @@ void CChannelList::paintItem(int pos)
|
|||||||
r_icon_x = r_icon_x - s_icon_w;
|
r_icon_x = r_icon_x - s_icon_w;
|
||||||
|
|
||||||
//paint recording icon
|
//paint recording icon
|
||||||
bool do_rec = CRecordManager::getInstance()->RecordingStatus(chanlist[curr]->channel_id);
|
//bool do_rec = CRecordManager::getInstance()->RecordingStatus(chanlist[curr]->channel_id);
|
||||||
if (do_rec)
|
if (rec_mode != CRecordManager::RECMODE_OFF)
|
||||||
frameBuffer->paintIcon(NEUTRINO_ICON_REC, r_icon_x - r_icon_w, ypos, fheight);//ypos + (fheight - 16)/2);
|
frameBuffer->paintIcon(rec_icon, r_icon_x - r_icon_w, ypos, fheight);//ypos + (fheight - 16)/2);
|
||||||
|
|
||||||
//paint buttons
|
//paint buttons
|
||||||
paintButtonBar(iscurrent);
|
paintButtonBar(iscurrent);
|
||||||
|
Reference in New Issue
Block a user