mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
epgview: auto-calc buttons struct
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1f21182405
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-24 (Fri, 24 Sep 2021)
Origin message was:
------------------
- epgview: auto-calc buttons struct
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1651,7 +1651,7 @@ void CEpgData::showProgressBar()
|
|||||||
|
|
||||||
#define TV_BUTTONS 0
|
#define TV_BUTTONS 0
|
||||||
#define MP_BUTTONS 1
|
#define MP_BUTTONS 1
|
||||||
struct button_label EpgButtons[][5] =
|
struct button_label EpgButtons[][4] =
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
// TV_BUTTONS
|
// TV_BUTTONS
|
||||||
@@ -1684,7 +1684,7 @@ void CEpgData::showTimerEventBar (bool pshow, bool adzap, bool mp_info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int UsedButtons = mp_info ? MP_BUTTONS : TV_BUTTONS;
|
int UsedButtons = mp_info ? MP_BUTTONS : TV_BUTTONS;
|
||||||
int MaxButtons = mp_info ? 2 : 4; //TODO: auto-calc from struct
|
int MaxButtons = sizeof(EpgButtons[UsedButtons])/sizeof(button_label);
|
||||||
|
|
||||||
std::string adzap_button;
|
std::string adzap_button;
|
||||||
if (adzap)
|
if (adzap)
|
||||||
|
Reference in New Issue
Block a user