summaryrefslogtreecommitdiff
path: root/displaychannel.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-03-02 16:06:44 +0100
committerlouis <louis.braun@gmx.de>2013-03-02 16:06:44 +0100
commit949bf478ebbdc6dcb71c47f7b9a79516f741184e (patch)
tree627b2a8c5ded2bfa284bb3cb613eee3bc961e3c7 /displaychannel.c
parent4932c641ee7deb759eeb8c21840f6ed8db7f236d (diff)
downloadskin-nopacity-949bf478ebbdc6dcb71c47f7b9a79516f741184e.tar.gz
skin-nopacity-949bf478ebbdc6dcb71c47f7b9a79516f741184e.tar.bz2
Usage of channel separator logos
Diffstat (limited to 'displaychannel.c')
-rw-r--r--displaychannel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/displaychannel.c b/displaychannel.c
index 4bd063d..eb050ca 100644
--- a/displaychannel.c
+++ b/displaychannel.c
@@ -372,7 +372,9 @@ void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) {
pixmapChannelInfo->DrawText(cPoint(channelInfoHeight/2, (channelInfoHeight-fontHeader->Height())/2), channelString, Theme.Color(clrChannelHead), clrTransparent, fontHeader);
}
cImageLoader imgLoader;
- if (imgLoader.LoadIcon("Channelseparator", config.logoHeight)) {
+ if (imgLoader.LoadLogo(*ChannelName)) {
+ pixmapLogo->DrawImage(cPoint(config.logoBorder, (height-config.logoHeight)/2), imgLoader.GetImage());
+ } else if (imgLoader.LoadIcon("Channelseparator", config.logoHeight)) {
pixmapLogo->DrawImage(cPoint(config.logoBorder + (config.logoWidth - config.logoHeight)/2, (height-config.logoHeight)/2), imgLoader.GetImage());
}
}