diff --git a/src/driver/fontrenderer.h b/src/driver/fontrenderer.h index c4068579a..097fbda8e 100644 --- a/src/driver/fontrenderer.h +++ b/src/driver/fontrenderer.h @@ -90,6 +90,8 @@ class Font int getWidestWidth(void); int getSize(){return font.width;} int setSize(int isize); + int getAscender(){return ascender;} + int getDescender(){return descender * -1;} Font(FBFontRenderClass *render, FTC_FaceID faceid, const int isize, const fontmodifier _stylemodifier); ~Font(){} diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 7393cda59..cd9243d82 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2216,7 +2216,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint) } g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->RenderString(x + OFFSET_INNER_MID + numwidth + OFFSET_INNER_MID + prg_offset + OFFSET_INNER_MID, ypos + fheight, ch_name_len, nameAndDescription, color); - int descr_offset = fheight/2 - g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getHeight()/2; + int descr_offset = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getDescender() - g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getDescender(); if (g_settings.channellist_epgtext_align_right) { // align right