CCDraw: add private variable col_shadow_clean

Should help to control shadow clean up in some constallations
This commit is contained in:
2016-10-05 21:50:13 +02:00
parent 0f6e8e1f5d
commit 7266628207
3 changed files with 3 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha)
col_body = col_body_old = COL_MENUCONTENT_PLUS_0;
col_shadow = col_shadow_old = COL_SHADOW_PLUS_0;
col_frame = col_frame_old = COL_FRAME_PLUS_0;
col_shadow_clean = 0;
fr_thickness = fr_thickness_old = 0;

View File

@@ -67,6 +67,8 @@ class CCDraw : public COSDFader, public CComponentsSignals
fb_pixel_t col_shadow, col_shadow_old;
///property: color of frame
fb_pixel_t col_frame, col_frame_old;
///internal property: color for shadow clean up
fb_pixel_t col_shadow_clean;
///property: frame thickness, see also setFrameThickness()
int fr_thickness, fr_thickness_old;

View File

@@ -95,7 +95,6 @@ void CComponentsItem::paintInit(bool do_save_bg)
//Workaround: ensure radius values >= 0, framebuffer methode paintBoxRel() gets confused
box_rad = max(box_rad, 0);
fb_pixel_t col_shadow_clean = 0;
//if item is bound on a parent form,...
if (cc_parent){
//...we must use real x/y values and from parent form as reference