diff --git a/src/gui/widget/buttons.cpp b/src/gui/widget/buttons.cpp index b7abf9b57..73f15004f 100644 --- a/src/gui/widget/buttons.cpp +++ b/src/gui/widget/buttons.cpp @@ -31,8 +31,12 @@ void paintButtons(CFrameBuffer * const frameBuffer, Font * const font, const CLo { for (unsigned int i = 0; i < count; i++) { + int iw = 0, ih = 0; + int fh = font->getHeight(); + + frameBuffer->getIconSize(content[i].button, &iw, &ih); frameBuffer->paintIcon(content[i].button, x + i * buttonwidth, y); - font->RenderString(x + i * buttonwidth + 20, y + 19, buttonwidth - 20, localemanager->getText(content[i].locale), COL_INFOBAR, 0, true); // UTF-8 + font->RenderString(x + i * buttonwidth + 20, y + fh-(fh-ih)/2, buttonwidth - 20, localemanager->getText(content[i].locale), COL_INFOBAR, 0, true); // UTF-8 } } #endif