epgview.cpp: fix possible overlapping text

Text was overlapping the navibar in some cases.
Space for text was insufficient calculated.
This commit is contained in:
2021-05-06 16:06:44 +02:00
parent bcab0c4d67
commit 284d4acbbe

View File

@@ -331,9 +331,9 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear)
CRateBanner cc_starbar(sx+OFFSET_INNER_MID+cover_offset, y+OFFSET_INNER_MID, stars, max_stars, provider_logo);
cc_starbar.paint();
medlinecount = (sb - cc_starbar.getHeight()) / medlineheight;
medlinecount = (sb - cc_starbar.getHeight() - OFFSET_INNER_MID) / medlineheight;
y += cc_starbar.getHeight() + OFFSET_INNER_MID;
}
y += medlineheight;
}
for (int i = startPos; i < textSize && i < startPos + medlinecount; i++, y += medlineheight)