summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-12-16 15:41:18 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-12-16 15:43:33 +0100
commit5b62cf1565b4f0957d2a8dc3ae795f850bdbf16b (patch)
tree93453bf27a69458a3278aeadbb4f4d412597de5a /menuitem.c
parent46be49e99cc61b3e72424036117cf80aa9e4642f (diff)
downloadskin-nopacity-5b62cf1565b4f0957d2a8dc3ae795f850bdbf16b.tar.gz
skin-nopacity-5b62cf1565b4f0957d2a8dc3ae795f850bdbf16b.tar.bz2
Centers ChannelLogos vertically in menu timer and menu schedule
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menuitem.c b/menuitem.c
index d955bf4..14ec7ce 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -648,7 +648,7 @@ void cNopacityScheduleMenuItem::DrawLogo(int logoWidth, int logoHeight) {
if (Channel && Channel->Name()) {
cImage *logo = imgCache->GetLogo(ctLogoMenuItem, Channel);
if (logo) {
- pixmapStatic->DrawImage(cPoint(1,1), *logo);
+ pixmapStatic->DrawImage(cPoint(1, (logoHeight - logo->Height()) / 2), *logo);
} else {
cTextWrapper channel;
channel.Set(Channel->Name(), font, logoWidth);
@@ -1130,7 +1130,7 @@ void cNopacityTimerMenuItem::DrawLogo(int logoWidth, int logoHeight) {
if (Timer && Timer->Channel() && Timer->Channel()->Name()) {
cImage *logo = imgCache->GetLogo(ctLogoMenuItem, Timer->Channel());
if (logo) {
- pixmapStatic->DrawImage(cPoint(1,1), *logo);
+ pixmapStatic->DrawImage(cPoint(1, (logoHeight - logo->Height()) / 2), *logo);
} else {
cTextWrapper channel;
channel.Set(Timer->Channel()->Name(), font, logoWidth);