diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-12-16 15:41:18 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-12-16 15:43:33 +0100 |
commit | 5b62cf1565b4f0957d2a8dc3ae795f850bdbf16b (patch) | |
tree | 93453bf27a69458a3278aeadbb4f4d412597de5a /menuitem.c | |
parent | 46be49e99cc61b3e72424036117cf80aa9e4642f (diff) | |
download | skin-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |