From 22a39bdf9d64beccb2d455dfadc3fc51cc53d6d3 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 19 Nov 2021 21:00:16 +0100 Subject: [PATCH] Revert "-bouquetlist: ugly workaround for better readability" This reverts commit 5011c3474ce58db732e39a74279b8e97c0034d22. --- src/gui/bouquetlist.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/bouquetlist.cpp b/src/gui/bouquetlist.cpp index a32b1f27e..3486f1609 100644 --- a/src/gui/bouquetlist.cpp +++ b/src/gui/bouquetlist.cpp @@ -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();