From f2eb47b9fcfd221d9075253597644bf1208d791d Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 11 Nov 2016 00:25:25 +0100 Subject: [PATCH] eventlist: allow gradient/radius changes w/o neutrino restart Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c056b56d1242b376924c8875f161406c8ff1a2ca Author: vanhofen Date: 2016-11-11 (Fri, 11 Nov 2016) Origin message was: ------------------ - eventlist: allow gradient/radius changes w/o neutrino restart ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/eventlist.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 35414a19d..0902ff472 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -848,11 +848,11 @@ void CEventList::paintHead(t_channel_id _channel_id, std::string _channelname, s int font_mid = SNeutrinoSettings::FONT_TYPE_EVENTLIST_TITLE; int font_lr = SNeutrinoSettings::FONT_TYPE_EVENTLIST_ITEMLARGE; - if (!header){ + if (!header) header = new CComponentsFrmChain(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->setCorner(RADIUS_LARGE, CORNER_TOP); - } + + 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->clear(); int x_off = OFFSET_INNER_MID;