Center channel logos in EPG detail view

This commit is contained in:
kamel5 2018-07-25 17:08:44 +02:00 committed by kamel5
parent b086cf85dc
commit d0969687ea
1 changed files with 2 additions and 1 deletions

3
view.c
View File

@ -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;
}
}