diff options
author | louis <louis.braun@gmx.de> | 2013-09-13 16:38:04 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-13 16:38:04 +0200 |
commit | 24262eefa031a9d5ef243205719e8edc45d66ea4 (patch) | |
tree | 3164828d7afbfece68422afbfbe9205cc9051a83 /menuitem.c | |
parent | dcfc3b7083fed403555e0d33907f86699026cd45 (diff) | |
download | skin-nopacity-24262eefa031a9d5ef243205719e8edc45d66ea4.tar.gz skin-nopacity-24262eefa031a9d5ef243205719e8edc45d66ea4.tar.bz2 |
changed channel logo handling and added logo converter script with some backgrounds
Diffstat (limited to 'menuitem.c')
-rw-r--r-- | menuitem.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -524,6 +524,8 @@ void cNopacityScheduleMenuItem::DrawLogo(int logoWidth, int logoHeight) { cImageLoader imgLoader; if (imgLoader.LoadLogo(Channel->Name(), logoWidth, logoHeight)) { pixmapIcon->DrawImage(cPoint(1, 1), imgLoader.GetImage()); + } else if (imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()), logoWidth, logoHeight)) { + pixmapIcon->DrawImage(cPoint(1, 1), imgLoader.GetImage()); } else { cTextWrapper channel; channel.Set(Channel->Name(), font, logoWidth); @@ -764,7 +766,9 @@ void cNopacityChannelMenuItem::Render() { cImageLoader imgLoader; if (imgLoader.LoadLogo(Channel->Name(), logoWidth, logoHeight)) { pixmapIcon->DrawImage(cPoint(1, 1), imgLoader.GetImage()); - } + } else if (imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()), logoWidth, logoHeight)) { + pixmapIcon->DrawImage(cPoint(1, 1), imgLoader.GetImage()); + } drawn = true; } SetTextShort(); @@ -934,6 +938,8 @@ void cNopacityTimerMenuItem::DrawLogo(int logoWidth, int logoHeight) { cImageLoader imgLoader; if (imgLoader.LoadLogo(Timer->Channel()->Name(), logoWidth, logoHeight)) { pixmapIcon->DrawImage(cPoint(1, 1), imgLoader.GetImage()); + } else if (imgLoader.LoadLogo(*(Timer->Channel()->GetChannelID().ToString()), logoWidth, logoHeight)) { + pixmapIcon->DrawImage(cPoint(1, 1), imgLoader.GetImage()); } else { cTextWrapper channel; channel.Set(Timer->Channel()->Name(), font, logoWidth); |