summaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-07-25 17:08:44 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:42:24 +0100
commitd0969687ea330facdc3fa0612f3a2216658c6a1a (patch)
tree633fafde00cb56ec58bb287f6fa71ef81305a79e /view.c
parentb086cf85dcbdbb31e6a89b44babe01d7f0714ae8 (diff)
downloadvdr-plugin-tvguide-d0969687ea330facdc3fa0612f3a2216658c6a1a.tar.gz
vdr-plugin-tvguide-d0969687ea330facdc3fa0612f3a2216658c6a1a.tar.bz2
Center channel logos in EPG detail view
Diffstat (limited to 'view.c')
-rw-r--r--view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/view.c b/view.c
index 688189c..e4ca179 100644
--- a/view.c
+++ b/view.c
@@ -106,7 +106,8 @@ void cView::DrawHeader(void) {
cImageLoader imgLoader;
if (imgLoader.LoadLogo(channel, logoWidth, logoHeight)) {
cImage logo = imgLoader.GetImage();
- pixmapHeaderLogo->DrawImage(cPoint(border/2, (headerHeight - logoHeight)/2), logo);
+ const int logoheight = logo.Height();
+ pixmapHeaderLogo->DrawImage(cPoint(border / 2, ((headerHeight - logoHeight) / 2 + (logoHeight - logoheight) / 2)), logo);
xText += logoWidth + border / 2;
}
}