diff options
author | louis <louis.braun@gmx.de> | 2013-05-26 17:11:36 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-26 17:11:36 +0200 |
commit | 6a0447e7a8506659c8a211594c8632d4d0aafd6e (patch) | |
tree | 506ec89dfee6d7cf7f67011364c461ed5eed7587 | |
parent | 0338b9166fae00182853e78edf7ea9ef5bcfac78 (diff) | |
download | vdr-plugin-tvguide-6a0447e7a8506659c8a211594c8632d4d0aafd6e.tar.gz vdr-plugin-tvguide-6a0447e7a8506659c8a211594c8632d4d0aafd6e.tar.bz2 |
fixed text on short dummy grids
-rw-r--r-- | dummygrid.c | 5 | ||||
-rw-r--r-- | themes/tvguide-nOpacityiceblue.theme | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/dummygrid.c b/dummygrid.c index 7f943fc..0c3ca20 100644 --- a/dummygrid.c +++ b/dummygrid.c @@ -67,6 +67,11 @@ void cDummyGrid::drawText() { } } else if (tvguideConfig.displayMode == eHorizontal) { + if (Width()/tvguideConfig.minutePixel < 10) { + int titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2; + pixmap->DrawText(cPoint(borderWidth - 2, titleY), "...", theme.Color(clrFont), clrTransparent, tvguideConfig.FontGridHorizontal); + return; + } int titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2; pixmap->DrawText(cPoint(borderWidth, titleY), *strText, theme.Color(clrFont), clrTransparent, tvguideConfig.FontGridHorizontal); } diff --git a/themes/tvguide-nOpacityiceblue.theme b/themes/tvguide-nOpacityiceblue.theme index e298b14..c14083a 100644 --- a/themes/tvguide-nOpacityiceblue.theme +++ b/themes/tvguide-nOpacityiceblue.theme @@ -10,7 +10,7 @@ clrFontHeader = FF000000 clrHeader = FFFFFFFF clrBorder = FF000000 clrStatusHeader = DDFFFFFF -clrTimeline1 = FFFFFFFF +clrTimeline1 = FFDDDDDD clrTimeline1Blending = 00000000 clrTimeline2 = FF000000 clrTimeline2Blending = 00000000 |