From dff5ceee103a8d3d284d199d34c00c40ba20d066 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 30 Jan 2017 11:00:53 +0100 Subject: [PATCH] CMenuWidget: ensure repaint of all header content if it is already painted TODO: This should be controlled inside header base class. paint() method seems suitable. I Will try to implement it soon. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/97ed7cdaf74c7a539c792773541f5ac5e6608856 Author: Thilo Graf Date: 2017-01-30 (Mon, 30 Jan 2017) ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index cb83c00f5..3f5039f7d 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1257,6 +1257,8 @@ void CMenuWidget::paint() header->setCaptionColor(COL_MENUHEAD_TEXT); header->enableColBodyGradient(g_settings.theme.menu_Head_gradient, COL_MENUCONTENT_PLUS_0); header->enableGradientBgCleanUp(savescreen); + if (header->isPainted()) + header->kill(header->getColorBody()); header->paint(CC_SAVE_SCREEN_NO); // paint body shadow