From 4dd12767f9da83fff309422a33e386a615d3cd90 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 28 Aug 2017 12:16:45 +0200 Subject: [PATCH] CTimerList: paint header only if required Avoid possible flicker effects. TODO: fix clock background with enabled gradient on header repaint. --- src/gui/timerlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 8d39b1783..f6396045d 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -1386,7 +1386,8 @@ void CTimerList::paintHead() header = new CComponentsHeader(x, y, width, header_height, LOCALE_TIMERLIST_NAME, NEUTRINO_ICON_TIMER, CComponentsHeader::CC_BTN_MENU | CComponentsHeader::CC_BTN_EXIT, NULL, CC_SHADOW_ON); header->enableClock(true, " %d.%m.%Y - %H:%M ", NULL, false); } - header->paint(CC_SAVE_SCREEN_NO); + if(!header->isPainted()) + header->paint(CC_SAVE_SCREEN_NO); } void CTimerList::paintFoot()