diff --git a/src/gui/components/cc_draw.cpp b/src/gui/components/cc_draw.cpp index 90c1f6a39..4174e8f81 100644 --- a/src/gui/components/cc_draw.cpp +++ b/src/gui/components/cc_draw.cpp @@ -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; diff --git a/src/gui/components/cc_draw.h b/src/gui/components/cc_draw.h index 3728db9a9..d0664b7a4 100644 --- a/src/gui/components/cc_draw.h +++ b/src/gui/components/cc_draw.h @@ -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; diff --git a/src/gui/components/cc_item.cpp b/src/gui/components/cc_item.cpp index cfb4a1f81..3a874b8c2 100644 --- a/src/gui/components/cc_item.cpp +++ b/src/gui/components/cc_item.cpp @@ -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