mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Center channel logos in EPG detail view
This commit is contained in:
parent
b086cf85dc
commit
d0969687ea
3
view.c
3
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user