mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CCDraw: add private variable col_shadow_clean
Should help to control shadow clean up in some constallations
This commit is contained in:
@@ -40,6 +40,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha)
|
|||||||
col_body = col_body_old = COL_MENUCONTENT_PLUS_0;
|
col_body = col_body_old = COL_MENUCONTENT_PLUS_0;
|
||||||
col_shadow = col_shadow_old = COL_SHADOW_PLUS_0;
|
col_shadow = col_shadow_old = COL_SHADOW_PLUS_0;
|
||||||
col_frame = col_frame_old = COL_FRAME_PLUS_0;
|
col_frame = col_frame_old = COL_FRAME_PLUS_0;
|
||||||
|
col_shadow_clean = 0;
|
||||||
|
|
||||||
fr_thickness = fr_thickness_old = 0;
|
fr_thickness = fr_thickness_old = 0;
|
||||||
|
|
||||||
|
@@ -67,6 +67,8 @@ class CCDraw : public COSDFader, public CComponentsSignals
|
|||||||
fb_pixel_t col_shadow, col_shadow_old;
|
fb_pixel_t col_shadow, col_shadow_old;
|
||||||
///property: color of frame
|
///property: color of frame
|
||||||
fb_pixel_t col_frame, col_frame_old;
|
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()
|
///property: frame thickness, see also setFrameThickness()
|
||||||
int fr_thickness, fr_thickness_old;
|
int fr_thickness, fr_thickness_old;
|
||||||
|
@@ -95,7 +95,6 @@ void CComponentsItem::paintInit(bool do_save_bg)
|
|||||||
//Workaround: ensure radius values >= 0, framebuffer methode paintBoxRel() gets confused
|
//Workaround: ensure radius values >= 0, framebuffer methode paintBoxRel() gets confused
|
||||||
box_rad = max(box_rad, 0);
|
box_rad = max(box_rad, 0);
|
||||||
|
|
||||||
fb_pixel_t col_shadow_clean = 0;
|
|
||||||
//if item is bound on a parent form,...
|
//if item is bound on a parent form,...
|
||||||
if (cc_parent){
|
if (cc_parent){
|
||||||
//...we must use real x/y values and from parent form as reference
|
//...we must use real x/y values and from parent form as reference
|
||||||
|
Reference in New Issue
Block a user