mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
Revert "- bouquetlist: fix footer; CComponentsFooter doesn't like 0 buttons as it seems"
This reverts commit5925d73b0d
. Origin commit data ------------------ Branch: ni/coolstream Commit:768bb1330b
Author: vanhofen <vanhofen@gmx.de> Date: 2017-06-30 (Fri, 30 Jun 2017) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -735,19 +735,9 @@ void CBouquetList::paint()
|
|||||||
// no buttons in favonly mode
|
// no buttons in favonly mode
|
||||||
int numButtons = (favonly) ? 0 : sizeof(CBouquetListButtons)/sizeof(CBouquetListButtons[0]);
|
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;
|
CComponentsFooter footer;
|
||||||
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
||||||
footer.paintButtons(x, y + height - footer_height, width, footer_height, numButtons, CBouquetListButtons);
|
footer.paintButtons(x, y + height - footer_height, width, footer_height, numButtons, CBouquetListButtons);
|
||||||
}
|
|
||||||
|
|
||||||
if (!Bouquets.empty())
|
if (!Bouquets.empty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user