mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
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:
@@ -717,7 +717,7 @@ void CInfoViewer::showTitle (const int ChanNum, const std::string & Channel, con
|
||||
std::string prov_name = pname;
|
||||
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);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->RenderString(
|
||||
ChanNameX + 10 + ChanNumWidth + chname_width, ChanNameY + time_height -SHADOW_OFFSET/2,
|
||||
|
Reference in New Issue
Block a user