- filebrowser: minor cleanup

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-11-01 21:12:01 +01:00
committed by Thilo Graf
parent f6932af7ed
commit a8c4560f30

View File

@@ -1282,7 +1282,7 @@ void CFileBrowser::paintItem(unsigned int pos)
icon_w = g_IconFont->getWidestWidth(); icon_w = g_IconFont->getWidestWidth();
int icon_w_real = g_IconFont->getRenderWidth(fileicon); int icon_w_real = g_IconFont->getRenderWidth(fileicon);
int spacer_x = (icon_w - icon_w_real) / 2; int spacer_x = (icon_w - icon_w_real) / 2;
g_IconFont->RenderString(x + OFFSET_INNER_MID + spacer_x, ypos + g_IconFont->getHeight() /*item_height - spacer_y*/, icon_w_real, fileicon, color); g_IconFont->RenderString(x + OFFSET_INNER_MID + spacer_x, ypos + g_IconFont->getHeight(), icon_w_real, fileicon, color);
g_IconFont->setSize(iconfont_size); g_IconFont->setSize(iconfont_size);
} }
else else