Revert "-bouquetlist: ugly workaround for better readability"

This reverts commit 5011c3474c.
This commit is contained in:
2021-11-19 21:00:16 +01:00
parent af8c1abe16
commit 22a39bdf9d

View File

@@ -425,8 +425,7 @@ int CBouquetList::show(bool bShowChannelList)
It would be better to get the needed width from
CComponententsFooter class.
*/
int numButtons = (sizeof(CBouquetListButtons)/sizeof(CBouquetListButtons[0]));
width = numButtons*(w_max_icon + w_max_text + numButtons*OFFSET_INNER_MID);
width = (sizeof(CBouquetListButtons)/sizeof(CBouquetListButtons[0]))*(w_max_icon + w_max_text + 2*OFFSET_INNER_MID);
height = 16*item_height;
header_height = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();