fixed text on short dummy grids

This commit is contained in:
louis 2013-05-26 17:11:36 +02:00
parent 0338b9166f
commit 6a0447e7a8
2 changed files with 6 additions and 1 deletions

View File

@ -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);
}

View File

@ -10,7 +10,7 @@ clrFontHeader = FF000000
clrHeader = FFFFFFFF
clrBorder = FF000000
clrStatusHeader = DDFFFFFF
clrTimeline1 = FFFFFFFF
clrTimeline1 = FFDDDDDD
clrTimeline1Blending = 00000000
clrTimeline2 = FF000000
clrTimeline2Blending = 00000000