diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-07-25 17:08:44 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-01-27 11:42:24 +0100 |
commit | d0969687ea330facdc3fa0612f3a2216658c6a1a (patch) | |
tree | 633fafde00cb56ec58bb287f6fa71ef81305a79e /view.c | |
parent | b086cf85dcbdbb31e6a89b44babe01d7f0714ae8 (diff) | |
download | vdr-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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;
}
}
|