CCDraw: Set cc_gradient_bg_cleanup to true

Except menu headers: Disable cleanup when save screen is disabled


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6c72fe94bc
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-29 (Fri, 29 Jan 2016)

Origin message was:
------------------
CCDraw: Set cc_gradient_bg_cleanup to true

 Except menu headers: Disable cleanup when save screen is disabled


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-01-29 10:13:52 +01:00
parent 0598782eda
commit 8372065c10
7 changed files with 1 additions and 8 deletions

View File

@@ -2066,7 +2066,6 @@ void CChannelList::paintHead()
}
header->setDimensionsAll(x, y, full_width, theight);
header->enableGradientBgCleanUp();
if (bouquet && bouquet->zapitBouquet && bouquet->zapitBouquet->bLocked != g_settings.parentallock_defaultlocked)
header->setIcon(NEUTRINO_ICON_LOCK);

View File

@@ -71,7 +71,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha)
cc_body_gradient_saturation = 0xC0;
cc_body_gradient_direction = cc_body_gradient_direction_old = CFrameBuffer::gradientVertical;
cc_gradient_bg_cleanup = false;
cc_gradient_bg_cleanup = true;
v_fbdata.clear();
}

View File

@@ -127,7 +127,6 @@ void EpgPlus::Header::paint(const char * Name)
std::string head = Name ? Name : g_Locale->getText (LOCALE_EPGPLUS_HEAD);
CComponentsHeader header(this->x, this->y, this->width, this->font->getHeight()+4, head);
header.enableGradientBgCleanUp();
header.paint(CC_SAVE_SCREEN_NO);
}

View File

@@ -646,7 +646,6 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
headerPic = new CComponentsPicture(sx+10, sy + (header_h-logo_h)/2, logo_w, logo_h, lname);
headerPic->doPaintBg(false);
}
header->enableGradientBgCleanUp();
std::string textAll = (!text2.empty()) ? text1 + "\n" + text2 : text1;
headerText = new CComponentsText(sx+15+pic_offx, sy, ox-15-pic_offx, header_h, textAll, CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_EPG_TITLE]);
headerText->doPaintBg(false);

View File

@@ -422,7 +422,6 @@ void CInfoViewer::paintHead()
header->setColorBody(g_settings.theme.infobar_gradient_top ? COL_MENUHEAD_PLUS_0 : COL_INFOBAR_PLUS_0);
header->enableColBodyGradient(g_settings.theme.infobar_gradient_top, COL_INFOBAR_PLUS_0, g_settings.theme.infobar_gradient_top_direction);
clock->setColorBody(header->getColorBody());
header->enableGradientBgCleanUp();
header->paint(CC_SAVE_SCREEN_NO);
header_height = header->getHeight();
@@ -458,7 +457,6 @@ void CInfoViewer::paintBody()
body->setColorBody(g_settings.theme.infobar_gradient_body ? COL_MENUHEAD_PLUS_0 : COL_INFOBAR_PLUS_0);
body->enableColBodyGradient(g_settings.theme.infobar_gradient_body, COL_INFOBAR_PLUS_0, g_settings.theme.infobar_gradient_body_direction);
body->enableGradientBgCleanUp();
body->paint(CC_SAVE_SCREEN_NO);
}

View File

@@ -498,7 +498,6 @@ void CInfoViewerBB::paintFoot(int w)
foot->setColorBody(COL_INFOBAR_BUTTONS_BACKGROUND);
foot->enableColBodyGradient(g_settings.theme.infobar_gradient_bottom, COL_INFOBAR_PLUS_0, g_settings.theme.infobar_gradient_bottom_direction);
foot->setCorner(RADIUS_LARGE, CORNER_BOTTOM);
foot->enableGradientBgCleanUp();
foot->paint(CC_SAVE_SCREEN_NO);
}

View File

@@ -1482,7 +1482,6 @@ void CMenuWidget::paintHint(int pos)
info_box->enableShadow();
info_box->setPicture(item->hintIcon ? item->hintIcon : "");
info_box->enableColBodyGradient(g_settings.theme.menu_Hint_gradient, COL_INFOBAR_SHADOW_PLUS_1, g_settings.theme.menu_Hint_gradient_direction);// COL_INFOBAR_SHADOW_PLUS_1 is default footer color
info_box->enableGradientBgCleanUp();
//paint result
if (details_line)