diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-04-03 17:17:03 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-04-03 17:17:03 +0200 |
commit | 8254881394439d665dee341881cd25a32081f26d (patch) | |
tree | f5d62e9224b33c86daa7c36780222de08837ada4 /displaychannel.c | |
parent | 4f3c3d9b93bd8560ac4360f665fbb2ee3f2b7b3c (diff) | |
download | skin-flatplus-8254881394439d665dee341881cd25a32081f26d.tar.gz skin-flatplus-8254881394439d665dee341881cd25a32081f26d.tar.bz2 |
fix alignment of channel logo
Diffstat (limited to 'displaychannel.c')
-rw-r--r-- | displaychannel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/displaychannel.c b/displaychannel.c index 79852963..71338395 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -147,21 +147,21 @@ void cFlatDisplayChannel::SetChannel(const cChannel *Channel, int Number) { chanLogoBGPixmap->DrawImage( cPoint(imageLeft, imageTop), *imgBG ); } - cImage *img = imgLoader.LoadLogo(*channelName, imageHeight*1.34, imageHeight); + cImage *img = imgLoader.LoadLogo(*channelName, imageBGWidth - 4, imageBGHeight - 4); if( img ) { imageTop = marginItem + (imageBGHeight - img->Height()) / 2; imageLeft = marginItem*2 + (imageBGWidth - img->Width()) / 2; chanLogoPixmap->DrawImage( cPoint(imageLeft, imageTop), *img ); } else if( !isGroup ) { // draw default logo if( isRadioChannel ) { - img = imgLoader.LoadIcon("radio", imageHeight, imageHeight); + img = imgLoader.LoadIcon("radio", imageBGWidth - 10, imageBGHeight - 10); if( img ) { imageTop = marginItem + (imageHeight - img->Height()) / 2; imageLeft = marginItem*2 + (imageBGWidth - img->Width()) / 2; chanLogoPixmap->DrawImage( cPoint(imageLeft, imageTop), *img ); } } else { - img = imgLoader.LoadIcon("tv", imageHeight, imageHeight); + img = imgLoader.LoadIcon("tv", imageBGWidth - 10, imageBGHeight - 10); if( img ) { imageTop = marginItem + (imageHeight - img->Height()) / 2; imageLeft = marginItem*2 + (imageBGWidth - img->Width()) / 2; |