diff --git a/src/gui/epgview.cpp b/src/gui/epgview.cpp index 022d9210c..945560d59 100644 --- a/src/gui/epgview.cpp +++ b/src/gui/epgview.cpp @@ -294,19 +294,21 @@ void CEpgData::showText(int startPos, int ypos, bool has_cover, bool fullClear) } } int logo_offset = 0; - if (tmdb_active && startPos == 0) { - int icon_w,icon_h; + int icon_w = 0; + int icon_h = 0; + if (tmdb_active && startPos == 0) + { frameBuffer->getIconSize(NEUTRINO_ICON_TMDB, &icon_w, &icon_h); - frameBuffer->paintIcon(NEUTRINO_ICON_TMDB, sx+10+cover_offset, ypos+10); + frameBuffer->paintIcon(NEUTRINO_ICON_TMDB, sx+10+cover_offset, y+(medlineheight-icon_h)/2); logo_offset = icon_w + 10; } - if (stars > 0 && startPos == 0) { - int icon_w,icon_h; + if (stars > 0 && startPos == 0) + { frameBuffer->getIconSize(NEUTRINO_ICON_STAR_OFF, &icon_w, &icon_h); for (int i = 0; i < 10; i++) - frameBuffer->paintIcon(NEUTRINO_ICON_STAR_OFF, sx+10+cover_offset+logo_offset + i*(icon_w+3), y+10); + frameBuffer->paintIcon(NEUTRINO_ICON_STAR_OFF, sx+10+cover_offset+logo_offset + i*(icon_w+3), y+(medlineheight-icon_h)/2); for (int i = 0; i < stars; i++) - frameBuffer->paintIcon(NEUTRINO_ICON_STAR_ON, sx+10+cover_offset+logo_offset + i*(icon_w+3), y+10); + frameBuffer->paintIcon(NEUTRINO_ICON_STAR_ON, sx+10+cover_offset+logo_offset + i*(icon_w+3), y+(medlineheight-icon_h)/2); } for (int i = startPos; i < textSize && i < startPos + medlinecount; i++, y += medlineheight) {