mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
channellist, align channelname and description to the same baseline
This commit is contained in:
@@ -90,6 +90,8 @@ class Font
|
|||||||
int getWidestWidth(void);
|
int getWidestWidth(void);
|
||||||
int getSize(){return font.width;}
|
int getSize(){return font.width;}
|
||||||
int setSize(int isize);
|
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(FBFontRenderClass *render, FTC_FaceID faceid, const int isize, const fontmodifier _stylemodifier);
|
||||||
~Font(){}
|
~Font(){}
|
||||||
|
@@ -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);
|
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)
|
if (g_settings.channellist_epgtext_align_right)
|
||||||
{
|
{
|
||||||
// align right
|
// align right
|
||||||
|
Reference in New Issue
Block a user