mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +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
This commit is contained in:
@@ -857,14 +857,11 @@ 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();
|
header = new CComponentsHeader();
|
||||||
delete header;
|
header->getTextObject()->enableTboxSaveScreen(g_settings.theme.menu_Head_gradient);//enable screen save for title text if color gradient is in use
|
||||||
header = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
header = new CComponentsHeader();
|
|
||||||
|
|
||||||
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);
|
||||||
header->setCorner(RADIUS_LARGE, CORNER_TOP);
|
header->setCorner(RADIUS_LARGE, CORNER_TOP);
|
||||||
|
Reference in New Issue
Block a user