From 929d8db9bac0d1f7d698650b59d2b2e1aa4c6320 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Mon, 8 Apr 2019 14:16:21 +0200 Subject: Optical changes in displaymode vertical --- headergrid.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'headergrid.c') 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; iWidth(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); } } -- cgit v1.2.3