diff options
author | louis <louis.braun@gmx.de> | 2013-06-01 11:18:43 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-06-01 11:18:43 +0200 |
commit | da2893031856b0c051224650d689d76601523f83 (patch) | |
tree | 78a5f0edcf6a7ca1dcb9b79851e64717eada6416 /epggrid.c | |
parent | 10c1a1d8cec7772a2e8975bc8a7c580ecdd19955 (diff) | |
download | vdr-plugin-tvguide-da2893031856b0c051224650d689d76601523f83.tar.gz vdr-plugin-tvguide-da2893031856b0c051224650d689d76601523f83.tar.bz2 |
Setup option to hide schedules time display in horizontal EPG grids
Diffstat (limited to 'epggrid.c')
-rw-r--r-- | epggrid.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -97,9 +97,14 @@ void cEpgGrid::drawText() { pixmap->DrawText(cPoint(borderWidth - 2, titleY), "...", colorText, colorTextBack, tvguideConfig.FontGridHorizontal);
return;
}
- pixmap->DrawText(cPoint(borderWidth, borderWidth), *timeString, colorText, colorTextBack, tvguideConfig.FontGridHorizontalSmall);
cString strTitle = CutText(event->Title(), viewportHeight, tvguideConfig.FontGridHorizontal).c_str();
- int titleY = tvguideConfig.FontGridHorizontalSmall->Height() + (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontalSmall->Height() - tvguideConfig.FontGridHorizontal->Height())/2;
+ int titleY = 0;
+ if (tvguideConfig.showTimeInGrid) {
+ pixmap->DrawText(cPoint(borderWidth, borderWidth), *timeString, colorText, colorTextBack, tvguideConfig.FontGridHorizontalSmall);
+ titleY = tvguideConfig.FontGridHorizontalSmall->Height() + (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontalSmall->Height() - tvguideConfig.FontGridHorizontal->Height())/2;
+ } else {
+ titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2;
+ }
pixmap->DrawText(cPoint(borderWidth, titleY), *strTitle, colorText, colorTextBack, tvguideConfig.FontGridHorizontal);
}
}
|