mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
CTimerList: paint header only if required
Avoid possible flicker effects. TODO: fix clock background with enabled gradient on header repaint.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user