neutrino: vertically center menu icons

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@290 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2010-02-07 12:44:50 +00:00
parent fd348f036a
commit 0e9897a200

View File

@@ -511,7 +511,7 @@ void CMenuWidget::paint()
frameBuffer->paintBoxRel(x, y, width+sb_width, hheight, COL_MENUHEAD_PLUS_0, ROUND_RADIUS, CORNER_TOP); //FIXME rounded frameBuffer->paintBoxRel(x, y, width+sb_width, hheight, COL_MENUHEAD_PLUS_0, ROUND_RADIUS, CORNER_TOP); //FIXME rounded
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+38,y+hheight+1, width-40, l_name, COL_MENUHEAD, 0, true); // UTF-8 g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+38,y+hheight+1, width-40, l_name, COL_MENUHEAD, 0, true); // UTF-8
frameBuffer->paintIcon(iconfile, x + 8, y + 5); frameBuffer->paintIcon(iconfile, x + 8, y, hheight);
item_start_y = y+hheight; item_start_y = y+hheight;
paintItems(); paintItems();
@@ -862,7 +862,7 @@ int CMenuOptionChooser::paint( bool selected , bool last)
if (!(iconName.empty())) if (!(iconName.empty()))
{ {
frameBuffer->paintIcon(iconName, x + 10, y + ((height - 20) >> 1)); frameBuffer->paintIcon(iconName, x + 10, y, height);
} }
else if (CRCInput::isNumeric(directKey)) else if (CRCInput::isNumeric(directKey))
{ {
@@ -1030,7 +1030,7 @@ int CMenuOptionStringChooser::paint( bool selected, bool last )
if (!(iconName.empty())) if (!(iconName.empty()))
{ {
CFrameBuffer::getInstance()->paintIcon(iconName, x + 10, y + ((height - 20) >> 1)); CFrameBuffer::getInstance()->paintIcon(iconName, x + 10, y, height);
} }
else if (CRCInput::isNumeric(directKey)) else if (CRCInput::isNumeric(directKey))
{ {
@@ -1120,7 +1120,7 @@ int CMenuOptionLanguageChooser::paint( bool selected, bool last )
if (!(iconName.empty())) if (!(iconName.empty()))
{ {
CFrameBuffer::getInstance()->paintIcon(iconName, x + 10, y + ((height - 11) >> 1)); CFrameBuffer::getInstance()->paintIcon(iconName, x + 10, y, height);
} }
//int stringwidth = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(optionValue); //int stringwidth = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(optionValue);
@@ -1255,7 +1255,7 @@ int CMenuForwarder::paint(bool selected, bool last)
if (!iconName.empty()) if (!iconName.empty())
{ {
frameBuffer->paintIcon(iconName, x + 10, y+ ((height- 20)>>1) ); frameBuffer->paintIcon(iconName, x + 10, y, height);
} }
else if (CRCInput::isNumeric(directKey)) else if (CRCInput::isNumeric(directKey))
{ {