diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-03-25 16:43:31 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-03-28 18:21:32 +0100 |
commit | 56014ea73631115c50c2cad61315e330480d7c36 (patch) | |
tree | 27a9fd85332e0cf93485c10de617a07b59ac84dc | |
parent | f56219c93c3ec689cc71adc095f576712ad729df (diff) | |
download | vdr-plugin-tvguide-56014ea73631115c50c2cad61315e330480d7c36.tar.gz vdr-plugin-tvguide-56014ea73631115c50c2cad61315e330480d7c36.tar.bz2 |
Correct x position in EPG grid view
-rw-r--r-- | headergrid.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/headergrid.c b/headergrid.c index 8a19ec1..0b61097 100644 --- a/headergrid.c +++ b/headergrid.c @@ -48,9 +48,9 @@ void cHeaderGrid::drawChannel(const cChannel *channel) { void cHeaderGrid::drawChannelHorizontal(const cChannel *channel) {
int logoWidth = geoManager.logoWidth;
- int logoX = tvguideConfig.displayChannelName?2:(Width()-logoWidth)/2;
+ int logoX = tvguideConfig.displayChannelName ? 5 : (Width() - logoWidth) / 2;
int textX = 5;
- int textY = (Height() - fontManager.FontChannelHeaderHorizontal->Height())/2;
+ int textY = (Height() - fontManager.FontChannelHeaderHorizontal->Height()) / 2;
bool logoFound = false;
if (!tvguideConfig.hideChannelLogos) {
cImage *logo = imgCache.GetLogo(channel);
@@ -64,10 +64,11 @@ void cHeaderGrid::drawChannelHorizontal(const cChannel *channel) { int textWidthMax = Width() - 10;
if (!logoFound) {
drawText = true;
- } else if (tvguideConfig.displayChannelName) {
+ }
+ if (tvguideConfig.displayChannelName) {
drawText = true;
- textX += logoWidth;
- textWidthMax -= logoWidth;
+ textX += logoWidth + 5;
+ textWidthMax -= textX;
}
if (drawText) {
tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent;
|