mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Timerlist: Show rec icon when recording in progress.
Origin commit data
------------------
Branch: ni/coolstream
Commit: ab24123430
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-11-27 (Tue, 27 Nov 2012)
Origin message was:
------------------
* Timerlist: Show rec icon when recording in progress.
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -734,6 +734,21 @@ void CTimerList::paintItem(int pos)
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x+fw*13+(real_width-fw*23)/2,ypos+fheight, (real_width-fw*13)/2-5, srepeatcount, color, fheight, true); // UTF-8
|
||||
}
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x+fw*13+(real_width-fw*13)/2,ypos+fheight, (real_width-fw*13)/2-5, convertTimerType2String(timer.eventType), color, fheight, true); // UTF-8
|
||||
|
||||
// paint rec icon when recording in progress
|
||||
if ((timer.eventType == CTimerd::TIMER_RECORD) && (CRecordManager::getInstance()->RecordingStatus(timer.channel_id))) {
|
||||
CTimerd::RecordingStopInfo recinfo;
|
||||
recinfo.channel_id = timer.channel_id;
|
||||
recinfo.eventID = timer.eventID;
|
||||
if (CRecordManager::getInstance()->IsRecording(&recinfo)) {
|
||||
int icol_w, icol_h;
|
||||
frameBuffer->getIconSize(NEUTRINO_ICON_REC, &icol_w, &icol_h);
|
||||
if ((icol_w > 0) && (icol_h > 0)) {
|
||||
frameBuffer->paintIcon(NEUTRINO_ICON_REC, (x + real_width) - (icol_w + 8), ypos, 2*fheight);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string zAddData("");
|
||||
switch (timer.eventType)
|
||||
{
|
||||
|
Reference in New Issue
Block a user