mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
dont show logo if without Logo
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1490 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -605,14 +605,13 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
||||
std::string lname;
|
||||
int logo_w = 0;
|
||||
int logo_h = 0;
|
||||
if(g_PicViewer->GetLogoName(channel_id, cit->second.getName(), lname, &logo_w, &logo_h)) {
|
||||
if(logo_h > toph){
|
||||
if((toph/(logo_h-toph))>1){
|
||||
logo_w -= (logo_w/(toph/(logo_h-toph)));
|
||||
if(g_settings.infobar_show_channellogo && g_PicViewer->GetLogoName(channel_id, cit->second.getName(), lname, &logo_w, &logo_h)) {
|
||||
if(logo_h > toph){
|
||||
if((toph/(logo_h-toph))>1){
|
||||
logo_w -= (logo_w/(toph/(logo_h-toph)));
|
||||
}
|
||||
logo_h = toph;
|
||||
}
|
||||
logo_h = toph;
|
||||
}
|
||||
|
||||
g_PicViewer->DisplayImage(lname, sx+10, sy + (toph-logo_h)/2/*5*/, logo_w, logo_h);
|
||||
pic_offx = logo_w + 10;
|
||||
}
|
||||
|
Reference in New Issue
Block a user