From 6498768a0eec356e605ea5ce791440df3628d23b Mon Sep 17 00:00:00 2001 From: satbaby Date: Thu, 6 May 2010 09:56:26 +0000 Subject: [PATCH] fix gui bugs with big font git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@570 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/channellist.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 875df3829..29920cc35 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1577,7 +1577,7 @@ void CChannelList::paintItem(int pos) if(g_settings.channellist_extended) { - prg_offset=42; + prg_offset = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_NUMBER]->getRenderWidth("00:00"); title_offset=6; } @@ -1606,8 +1606,7 @@ void CChannelList::paintItem(int pos) int pb_space = prg_offset - title_offset; int pb_max = pb_space - 4; if (!(p_event->description.empty())) { - if(!g_settings.channellist_epgtext_align_right) - snprintf(nameAndDescription+l, sizeof(nameAndDescription)-l," - "); + snprintf(nameAndDescription+l, sizeof(nameAndDescription)-l,g_settings.channellist_epgtext_align_right ? " ":" - "); unsigned int ch_name_len = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getRenderWidth(nameAndDescription, true); unsigned int ch_desc_len = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getRenderWidth(p_event->description, true);