src/gui/infoviewer.cpp: fix channel name getRenderWidth for unicode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 158ad4243f
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-02-11 (Mon, 11 Feb 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2013-02-11 10:39:34 +01:00
parent 111fd98545
commit ce549b87b4

View File

@@ -717,7 +717,7 @@ void CInfoViewer::showTitle (const int ChanNum, const std::string & Channel, con
std::string prov_name = pname; std::string prov_name = pname;
prov_name=prov_name.substr(prov_name.find_first_of("]")+1); prov_name=prov_name.substr(prov_name.find_first_of("]")+1);
int chname_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getRenderWidth (ChannelName); int chname_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getRenderWidth (ChannelName, true);// UTF-8
chname_width += (chname_width/(ChannelName.size()-1)/2); chname_width += (chname_width/(ChannelName.size()-1)/2);
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->RenderString( g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->RenderString(
ChanNameX + 10 + ChanNumWidth + chname_width, ChanNameY + time_height -SHADOW_OFFSET/2, ChanNameX + 10 + ChanNumWidth + chname_width, ChanNameY + time_height -SHADOW_OFFSET/2,