mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
change getRenderWidth() default to UTF8
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8b91cda918
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-11 (Wed, 11 Jun 2014)
Origin message was:
------------------
- change getRenderWidth() default to UTF8
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1606,7 +1606,7 @@ void CMoviePlayerGui::showSubtitle(neutrino_msg_data_t data)
|
||||
int x[subtext.size()];
|
||||
int y[subtext.size()];
|
||||
for (unsigned i = 0; i < subtext.size(); i++) {
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_SUBTITLES]->getRenderWidth (subtext[i].c_str(), true);
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_SUBTITLES]->getRenderWidth (subtext[i]);
|
||||
x[i] = (sw - w) / 2;
|
||||
y[i] = sh - height + h*(i + 1);
|
||||
min_x = std::min(min_x, x[i]);
|
||||
|
Reference in New Issue
Block a user