summaryrefslogtreecommitdiff
path: root/headergrid.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-08 14:16:21 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-09 14:50:42 +0200
commit929d8db9bac0d1f7d698650b59d2b2e1aa4c6320 (patch)
tree2e8fe2ac91e5bdf8dcf63e2990aa1e16e273f7eb /headergrid.c
parent56250e3af8c4ae61f0e8325605744ee0a2ec4864 (diff)
downloadvdr-plugin-tvguide-929d8db9bac0d1f7d698650b59d2b2e1aa4c6320.tar.gz
vdr-plugin-tvguide-929d8db9bac0d1f7d698650b59d2b2e1aa4c6320.tar.bz2
Optical changes in displaymode vertical
Diffstat (limited to 'headergrid.c')
-rw-r--r--headergrid.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/headergrid.c b/headergrid.c
index 0b61097..94f0c9c 100644
--- a/headergrid.c
+++ b/headergrid.c
@@ -88,13 +88,12 @@ void cHeaderGrid::drawChannelVertical(const cChannel *channel) {
tw.Set(*headerText, fontManager.FontChannelHeader, geoManager.colWidth - 8);
int lines = tw.Lines();
int lineHeight = fontManager.FontChannelHeader->Height();
- int yStart = (geoManager.channelHeaderHeight - lines*lineHeight)/2 + 8;
+ int yStart = (geoManager.channelHeaderHeight - lines * lineHeight) / 2 + 8;
bool logoFound = false;
if (!tvguideConfig.hideChannelLogos) {
cImage *logo = imgCache.GetLogo(channel);
if (logo) {
- const int logoheight = logo->Height();
- pixmapLogo->DrawImage(cPoint((Width() - logoWidth) / 2, (geoManager.channelHeaderHeight - lineHeight - logoheight) / 2), *logo);
+ pixmapLogo->DrawImage(cPoint((Width() - logoWidth) / 2, 6), *logo);
logoFound = true;
}
}
@@ -108,12 +107,12 @@ void cHeaderGrid::drawChannelVertical(const cChannel *channel) {
if (!drawText)
return;
tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent;
- for (int i=0; i<lines; i++) {
+ for (int i = 0; i < lines; i++) {
int textWidth = fontManager.FontChannelHeader->Width(tw.GetLine(i));
int xText = (geoManager.colWidth - textWidth) / 2;
if (xText < 0)
xText = 0;
- pixmap->DrawText(cPoint(xText, yStart + i*lineHeight), tw.GetLine(i), theme.Color(clrFontHeader), colorTextBack, fontManager.FontChannelHeader);
+ pixmap->DrawText(cPoint(xText, yStart + i * lineHeight), tw.GetLine(i), theme.Color(clrFontHeader), colorTextBack, fontManager.FontChannelHeader);
}
}