mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-15 09:23:43 +02:00
Merge branch 'master' into pu/msgbox
This commit is contained in:
@@ -83,6 +83,11 @@ CComponentsInfoBox::~CComponentsInfoBox()
|
||||
void CComponentsInfoBox::setPicture(const std::string& picture_name)
|
||||
{
|
||||
pic_name = picture_name;
|
||||
if (!pic_name.empty()){
|
||||
int w, h;
|
||||
frameBuffer->getIconSize(pic_name.c_str(), &w, &h);
|
||||
height = max(h, height);
|
||||
}
|
||||
}
|
||||
|
||||
void CComponentsInfoBox::setPicture(const char* picture_name)
|
||||
|
@@ -713,10 +713,15 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
int logo_w = 0;
|
||||
int logo_h = 0;
|
||||
int logo_w_max = ox / 4;
|
||||
if(g_settings.infobar_show_channellogo && g_PicViewer->GetLogoName(channel_id, g_Zapit->getChannelName(channel_id), lname, &logo_w, &logo_h)) {
|
||||
if((logo_h > (toph-4)) || (logo_w > logo_w_max)) {
|
||||
std::string channel_name;
|
||||
if (mp_info)
|
||||
channel_name = mp_movie_info->channelName;
|
||||
else
|
||||
channel_name = g_Zapit->getChannelName(channel_id);
|
||||
if (g_settings.infobar_show_channellogo && g_PicViewer->GetLogoName(channel_id, channel_name, lname, &logo_w, &logo_h))
|
||||
{
|
||||
if ((logo_h > (toph-4)) || (logo_w > logo_w_max))
|
||||
g_PicViewer->rescaleImageDimensions(&logo_w, &logo_h, logo_w_max, toph-4);
|
||||
}
|
||||
pic_offx = logo_w + 10;
|
||||
}
|
||||
|
||||
|
@@ -1306,10 +1306,19 @@ bool CTimerEvent_Record::adjustToCurrentEPG()
|
||||
CEitManager::getInstance()->getEventsServiceKey(eventInfo.channel_id, evtlist);
|
||||
|
||||
time_t now = time(NULL);
|
||||
time_t compare;
|
||||
|
||||
int pre, post;
|
||||
CTimerManager::getInstance()->getRecordingSafety(pre, post);
|
||||
|
||||
CChannelEventList::iterator first = evtlist.end();
|
||||
for (CChannelEventList::iterator e = evtlist.begin(); e != evtlist.end(); ++e)
|
||||
{
|
||||
if (e->startTime < now)
|
||||
compare = e->startTime;
|
||||
if (!pre)
|
||||
compare += e->duration;
|
||||
|
||||
if (compare <= now)
|
||||
continue;
|
||||
if (first == evtlist.end() || first->startTime > e->startTime)
|
||||
first = e;
|
||||
@@ -1323,8 +1332,6 @@ bool CTimerEvent_Record::adjustToCurrentEPG()
|
||||
time_t _alarmTime = first->startTime;
|
||||
time_t _stopTime = first->startTime + first->duration;
|
||||
if (recordingSafety) {
|
||||
int pre, post;
|
||||
CTimerManager::getInstance()->getRecordingSafety(pre, post);
|
||||
_alarmTime -= pre;
|
||||
_stopTime += post;
|
||||
}
|
||||
|
Reference in New Issue
Block a user