bouquetlist: ugly workaround for better readability

Origin commit data
------------------
Commit: 3864334143
Author: TangoCash <eric@loxat.de>
Date: 2021-11-13 (Sat, 13 Nov 2021)

Origin message was:
------------------
- bouquetlist: ugly workaround for better readability
This commit is contained in:
TangoCash
2021-11-13 12:26:36 +01:00
committed by vanhofen
parent faa4bd5421
commit 7d740f20f2

View File

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