mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
some never read compil warning fixes
This commit is contained in:
@@ -47,9 +47,7 @@ CHintBoxExt::CHintBoxExt(const neutrino_locale_t Caption, const char * const Tex
|
||||
{
|
||||
m_message = strdup(Text);
|
||||
|
||||
char *begin = m_message;
|
||||
|
||||
begin = strtok(m_message, "\n");
|
||||
char *begin = strtok(m_message, "\n");
|
||||
while (begin != NULL)
|
||||
{
|
||||
std::vector<Drawable*> oneLine;
|
||||
@@ -67,9 +65,7 @@ CHintBoxExt::CHintBoxExt(const std::string &CaptionString, const char * const Te
|
||||
{
|
||||
m_message = strdup(Text);
|
||||
|
||||
char *begin = m_message;
|
||||
|
||||
begin = strtok(m_message, "\n");
|
||||
char *begin = strtok(m_message, "\n");
|
||||
while (begin != NULL)
|
||||
{
|
||||
std::vector<Drawable*> oneLine;
|
||||
|
@@ -379,7 +379,7 @@ void CMenuItem::paintItemButton(const bool select_mode, int item_height, const c
|
||||
|
||||
if (icon_w>0 && icon_h>0)
|
||||
{
|
||||
icon_painted = frameBuffer->paintIcon(iconName_Info_right, dx + icon_start_x - (icon_w + 20), y+ ((item_height/2- icon_h/2)) );
|
||||
frameBuffer->paintIcon(iconName_Info_right, dx + icon_start_x - (icon_w + 20), y+ ((item_height/2- icon_h/2)) );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1996,12 +1996,11 @@ int CMenuOptionChooser::paint( bool selected)
|
||||
|
||||
int CMenuOptionChooser::getWidth(void)
|
||||
{
|
||||
int ow = 0;
|
||||
int tw = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(getName());
|
||||
int width = tw;
|
||||
|
||||
for(unsigned int count = 0; count < options.size(); count++) {
|
||||
ow = 0;
|
||||
int ow = 0;
|
||||
if (options[count].valname)
|
||||
ow = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(options[count].valname);
|
||||
else
|
||||
|
@@ -310,7 +310,6 @@ void CExtendedInput::paint()
|
||||
tmp_y += iheight;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO]->RenderString(x+ offset, tmp_y, width- 2*offset, g_Locale->getText(hint_2), COL_MENUCONTENT_TEXT);
|
||||
}
|
||||
tmp_y += offset;
|
||||
}
|
||||
|
||||
for(unsigned int i=0; i<inputFields.size();i++)
|
||||
|
Reference in New Issue
Block a user