From 063d9fdc5b9a7143b7bf39b5d73ba527413523ce Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 13 May 2022 22:20:00 +0200 Subject: [PATCH] channellist: try to fix description length Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/40b6a03766998144f73b047653a05d43dc7c6950 Author: vanhofen Date: 2022-05-13 (Fri, 13 May 2022) Origin message was: ------------------ - channellist: try to fix description length ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index bd96c6090..89e8a2361 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -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))