mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +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:
@@ -608,7 +608,7 @@ int CLuaInstance::RenderString(lua_State *L)
|
||||
center = luaL_checkint(L, 9);
|
||||
if (f >= SNeutrinoSettings::FONT_TYPE_COUNT || f < 0)
|
||||
f = SNeutrinoSettings::FONT_TYPE_MENU;
|
||||
int rwidth = g_Font[f]->getRenderWidth(text, true);
|
||||
int rwidth = g_Font[f]->getRenderWidth(text);
|
||||
if (center) { /* center the text inside the box */
|
||||
if (rwidth < w)
|
||||
x += (w - rwidth) / 2;
|
||||
@@ -635,7 +635,7 @@ int CLuaInstance::getRenderWidth(lua_State *L)
|
||||
if (f >= SNeutrinoSettings::FONT_TYPE_COUNT || f < 0)
|
||||
f = SNeutrinoSettings::FONT_TYPE_MENU;
|
||||
|
||||
lua_pushinteger(L, (int)g_Font[f]->getRenderWidth(text, true));
|
||||
lua_pushinteger(L, (int)g_Font[f]->getRenderWidth(text));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user