From f0a1bad4fd469008b06e4f5c8fd014ee1485f64e Mon Sep 17 00:00:00 2001 From: satbaby Date: Wed, 2 Feb 2011 16:13:09 +0000 Subject: [PATCH] -add channel information option git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1102 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/channellist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 880164291..2fa5fdb6e 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1513,13 +1513,13 @@ void CChannelList::paintDetails(int index) text2 = text2.substr( 1 ); text2 = text2.substr( 0, text2.find('\n') ); int pos = 0; - while ( ( pos != -1 ) && (g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getRenderWidth(text2, true) > (width - 20 - noch_len) ) ) { + while ( ( pos != -1 ) && (g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getRenderWidth(text2, true) > (width - 30 - noch_len) ) ) { pos = text2.find_last_of(" "); + if ( pos!=-1 ) text2 = text2.substr( 0, pos ); } - - g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->RenderString(x+ xstart, y+ height+ 5+ 2* fheight, width- xstart- 20- noch_len, text2, COL_MENUCONTENTDARK, 0, true); + g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->RenderString(x+ xstart, y+ height+ 5+ 2* fheight, width- xstart- 30- noch_len, text2, COL_MENUCONTENTDARK, 0, true); } g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->RenderString(x+ 10, y+ height+ 5+ fheight, width - 30 - seit_len, text1, COL_MENUCONTENTDARK, 0, true);