show only standard icon size

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@632 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4f23553a27
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-06-18 (Fri, 18 Jun 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2010-06-18 04:57:07 +00:00
parent 80b7330106
commit c59f47cab3

View File

@@ -623,21 +623,24 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
//show Content&Component for Dolby & 16:9 //show Content&Component for Dolby & 16:9
CSectionsdClient::ComponentTagList tags; CSectionsdClient::ComponentTagList tags;
if ( sectionsd_getComponentTagsUniqueKey( epgData.eventID, tags ) ) int dummy_h,dummy_w;
{ frameBuffer->getIconSize(NEUTRINO_ICON_16_9_GREY, &dummy_w, &dummy_h);
for (unsigned int i=0; i< tags.size(); i++) if (dummy_h == 16 && dummy_w == 26){ // show only standard icon size
if ( sectionsd_getComponentTagsUniqueKey( epgData.eventID, tags ) )
{ {
if ( tags[i].streamContent == 1 && (tags[i].componentType == 2 || tags[i].componentType == 3) ) for (unsigned int i=0; i< tags.size(); i++)
{ {
frameBuffer->paintIcon(NEUTRINO_ICON_16_9 ,ox+sx-(ICON_LARGE_WIDTH+2)-(ICON_LARGE_WIDTH+2),sy + oy+5 ); if ( tags[i].streamContent == 1 && (tags[i].componentType == 2 || tags[i].componentType == 3) )
} {
else if ( tags[i].streamContent == 2 && tags[i].componentType == 5 ) frameBuffer->paintIcon(NEUTRINO_ICON_16_9 ,ox+sx-(ICON_LARGE_WIDTH+2)-(ICON_LARGE_WIDTH+2),sy + oy+5 );
{ }
frameBuffer->paintIcon(NEUTRINO_ICON_DD, ox+sx-(ICON_LARGE_WIDTH+2), sy + oy+5); else if ( tags[i].streamContent == 2 && tags[i].componentType == 5 )
{
frameBuffer->paintIcon(NEUTRINO_ICON_DD, ox+sx-(ICON_LARGE_WIDTH+2), sy + oy+5);
}
} }
} }
} }
//show progressbar //show progressbar
if ( epg_done!= -1 ) if ( epg_done!= -1 )
{ {