mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
eventlist: use footer object as class member
Allows to handle paint interval only on changed button count and
avoids related possible flicker effects on unnecessary paint events.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 79d3fc7a52
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-02-15 (Tue, 15 Feb 2022)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -121,6 +121,7 @@ CEventList::CEventList()
|
|||||||
header = NULL;
|
header = NULL;
|
||||||
pb = NULL;
|
pb = NULL;
|
||||||
navibar = NULL;
|
navibar = NULL;
|
||||||
|
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
CEventList::~CEventList()
|
CEventList::~CEventList()
|
||||||
@@ -705,6 +706,7 @@ int CEventList::exec(const t_channel_id channel_id, const std::string& channelna
|
|||||||
void CEventList::hide()
|
void CEventList::hide()
|
||||||
{
|
{
|
||||||
ResetModules();
|
ResetModules();
|
||||||
|
footer.kill();
|
||||||
frameBuffer->paintBackgroundBoxRel(x, y, full_width + OFFSET_SHADOW, height + OFFSET_SHADOW);
|
frameBuffer->paintBackgroundBoxRel(x, y, full_width + OFFSET_SHADOW, height + OFFSET_SHADOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1070,8 +1072,7 @@ void CEventList::paintFoot(t_channel_id channel_id)
|
|||||||
buttons[btn_cnt].locale = LOCALE_TIMERLIST_NAME;
|
buttons[btn_cnt].locale = LOCALE_TIMERLIST_NAME;
|
||||||
btn_cnt++;
|
btn_cnt++;
|
||||||
|
|
||||||
CComponentsFooter footer;
|
if (!footer.isPainted() || btn_cnt != (int)footer.getButtonChainObject()->size())
|
||||||
footer.enableShadow(CC_SHADOW_ON, -1, true);
|
|
||||||
footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, full_width, footer_height, btn_cnt, buttons);
|
footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, full_width, footer_height, btn_cnt, buttons);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -79,6 +79,7 @@ class CEventList : public CListHelpers
|
|||||||
CFrameBuffer *frameBuffer;
|
CFrameBuffer *frameBuffer;
|
||||||
CChannelEventList evtlist;
|
CChannelEventList evtlist;
|
||||||
CTimerd::TimerList timerlist;
|
CTimerd::TimerList timerlist;
|
||||||
|
CComponentsFooter footer;
|
||||||
void readEvents(const t_channel_id channel_id);
|
void readEvents(const t_channel_id channel_id);
|
||||||
unsigned int selected;
|
unsigned int selected;
|
||||||
unsigned int current_event;
|
unsigned int current_event;
|
||||||
|
Reference in New Issue
Block a user