From defb581a0d5e3cf429f13f70e40ee9ac2a5ea153 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 30 Jun 2017 10:43:06 +0200 Subject: [PATCH] Revert "- bouquetlist: fix footer; CComponentsFooter doesn't like 0 buttons as it seems" This reverts commit 5925d73b0d973f4d051c038d1559e345a88d32bd. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/768bb1330b04638925686a69250a6f0d65acd231 Author: vanhofen Date: 2017-06-30 (Fri, 30 Jun 2017) ------------------ This commit was generated by Migit --- src/gui/bouquetlist.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/gui/bouquetlist.cpp b/src/gui/bouquetlist.cpp index 2f9c0e07e..420c5ffc7 100644 --- a/src/gui/bouquetlist.cpp +++ b/src/gui/bouquetlist.cpp @@ -735,19 +735,9 @@ void CBouquetList::paint() // no buttons in favonly mode int numButtons = (favonly) ? 0 : sizeof(CBouquetListButtons)/sizeof(CBouquetListButtons[0]); - // FIXME: CComponentsFooter crashes again with 0 buttons as it seems - if (favonly) - { - // show an empty footer - frameBuffer->paintBoxRel(x + OFFSET_SHADOW, y + height - footer_height + OFFSET_SHADOW, width, footer_height, COL_SHADOW_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM); - frameBuffer->paintBoxRel(x, y + height - footer_height, width, footer_height, COL_MENUFOOT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM); - } - else - { CComponentsFooter footer; footer.enableShadow(CC_SHADOW_ON, -1, true); footer.paintButtons(x, y + height - footer_height, width, footer_height, numButtons, CBouquetListButtons); - } if (!Bouquets.empty()) {