channellist: try to fix description length

Origin commit data
------------------
Commit: 40b6a03766
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-05-13 (Fri, 13 May 2022)

Origin message was:
------------------
- channellist: try to fix description length
This commit is contained in:
vanhofen
2022-05-13 22:20:00 +02:00
parent b170f4039d
commit a32b1a68a6

View File

@@ -2223,9 +2223,14 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
int chan_desc_x;
if ((g_settings.channellist_epgtext_alignment == EPGTEXT_ALIGN_LEFT_MIDDLE) || (g_settings.channellist_epgtext_alignment == EPGTEXT_ALIGN_LEFT_BOTTOM))
{
chan_desc_x = x + OFFSET_INNER_MID + numwidth + OFFSET_INNER_MID + prg_offset + OFFSET_INNER_MID + chan_name_len;
}
else
{
chan_desc_len -= OFFSET_INNER_MID;
chan_desc_x = x + width - SCROLLBAR_WIDTH - offset_right - chan_desc_len;
}
int chan_desc_y_off;
if ((g_settings.channellist_epgtext_alignment == EPGTEXT_ALIGN_LEFT_MIDDLE) || (g_settings.channellist_epgtext_alignment == EPGTEXT_ALIGN_RIGHT_MIDDLE))