bouquetlist: fix width calculation

This commit is contained in:
Stefan Seyfried
2013-03-10 00:01:04 +01:00
committed by [CST] Focus
parent 25de0d4380
commit 6c982e3d49

View File

@@ -328,7 +328,7 @@ int CBouquetList::show(bool bShowChannelList)
for(unsigned int count = 0; count < sizeof(CBouquetListButtons)/sizeof(CBouquetListButtons[0]);count++){
int w_text = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText (CBouquetListButtons[count].locale),true);
w_max_text = std::max(w_max_icon, w_text);
w_max_text = std::max(w_max_text, w_text);
frameBuffer->getIconSize(CBouquetListButtons[count].button, &icol_w, &icol_h);
w_max_icon = std::max(w_max_icon, icol_w);
}