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:
vanhofen
2021-09-24 22:52:05 +02:00
parent 11774308c0
commit ed97434fbf

View File

@@ -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)