From 6a0447e7a8506659c8a211594c8632d4d0aafd6e Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 26 May 2013 17:11:36 +0200 Subject: fixed text on short dummy grids --- dummygrid.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dummygrid.c') 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); } -- cgit v1.2.3