mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
gui/widget/menue.cpp: fix CMenuForwarderNonLocalized::getWidth
Origin commit data
------------------
Branch: ni/coolstream
Commit: f21b291fcd
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-03-29 (Fri, 29 Mar 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1846,6 +1846,15 @@ void CMenuForwarderNonLocalized::setText(const char * const Text)
|
||||
int CMenuForwarderNonLocalized::getWidth(void)
|
||||
{
|
||||
int tw = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(the_text, true);
|
||||
const char * option_text = NULL;
|
||||
if (option)
|
||||
option_text = option;
|
||||
else if (option_string)
|
||||
option_text = option_string->c_str();
|
||||
|
||||
if (option_text != NULL)
|
||||
tw += 10 + g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(option_text, true);
|
||||
|
||||
return tw;
|
||||
}
|
||||
//-------------------------------------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user