mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
eventlist,epgview: reduce header flickering
picked from: https://github.com/TangoCash/neutrino-mp-cst-next
commit: df6862963a9b29a4d0955b01a22e1061c312b17f
Signed-off-by: Thilo Graf <dbt@novatux.de>
review reqiured
Conflicts:
src/gui/epgview.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: e98564c8e9
Author: TangoCash <eric@loxat.de>
Date: 2017-05-03 (Wed, 03 May 2017)
Origin message was:
------------------
-eventlist,epgview: reduce header flickering
picked from: https://github.com/TangoCash/neutrino-mp-cst-next
commit: df6862963a9b29a4d0955b01a22e1061c312b17f
Signed-off-by: Thilo Graf <dbt@novatux.de>
review reqiured
Conflicts:
src/gui/epgview.cpp
------------------
This commit was generated by Migit
This commit is contained in:
@@ -857,13 +857,10 @@ void CEventList::paintDescription(int index)
|
|||||||
|
|
||||||
void CEventList::paintHead(t_channel_id _channel_id, std::string _channelname, std::string _channelname_prev, std::string _channelname_next)
|
void CEventList::paintHead(t_channel_id _channel_id, std::string _channelname, std::string _channelname_prev, std::string _channelname_next)
|
||||||
{
|
{
|
||||||
if (header) {
|
if (header == NULL){
|
||||||
header->kill();
|
|
||||||
delete header;
|
|
||||||
header = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
header = new CComponentsHeader();
|
header = new CComponentsHeader();
|
||||||
|
header->getTextObject()->enableTboxSaveScreen(g_settings.theme.menu_Head_gradient);//enable screen save for title text if color gradient is in use
|
||||||
|
}
|
||||||
|
|
||||||
header->setDimensionsAll(x, y, full_width, theight);
|
header->setDimensionsAll(x, y, full_width, theight);
|
||||||
header->enableColBodyGradient(g_settings.theme.menu_Head_gradient, COL_MENUCONTENT_PLUS_0, g_settings.theme.menu_Head_gradient_direction);
|
header->enableColBodyGradient(g_settings.theme.menu_Head_gradient, COL_MENUCONTENT_PLUS_0, g_settings.theme.menu_Head_gradient_direction);
|
||||||
|
Reference in New Issue
Block a user