diff --git a/src/gui/components/cc_base.cpp b/src/gui/components/cc_base.cpp index 734d1bd2a..423b4a3fc 100644 --- a/src/gui/components/cc_base.cpp +++ b/src/gui/components/cc_base.cpp @@ -236,7 +236,7 @@ void CComponents::kill(const fb_pixel_t& bg_color, const int& corner_radius) { for(size_t i =0; i< v_fbdata.size() ;i++){ #if 0 - if (bg_color != COL_BACKGROUND) + if (bg_color != COL_BACKGROUND_PLUS_0) #endif int r = v_fbdata[i].r; if (corner_radius > -1) diff --git a/src/gui/components/cc_base.h b/src/gui/components/cc_base.h index 2f04ae620..d1b7ebb04 100644 --- a/src/gui/components/cc_base.h +++ b/src/gui/components/cc_base.h @@ -203,8 +203,8 @@ class CComponents : public COSDFader virtual void hide(); ///erase or paint over rendered objects without restore of background, it's similar to paintBackgroundBoxRel() known - ///from CFrameBuffer but with possiblity to define color, default color is COL_BACKGROUND (empty background) - virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND, const int& corner_radius = -1); + ///from CFrameBuffer but with possiblity to define color, default color is COL_BACKGROUND_PLUS_0 (empty background) + virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, const int& corner_radius = -1); ///returns paint mode, true=item was painted virtual bool isPainted(){return is_painted;} @@ -271,7 +271,7 @@ class CComponentsItem : public CComponents ///erase or paint over rendered objects without restore of background, it's similar to paintBackgroundBoxRel() known ///from CFrameBuffer but with possiblity to define color, default color is 0 (empty background) ///NOTE: Items with parent binding use the parent background color as default! Set parameter 'ignore_parent=true' to ignore parent background color! - virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND, bool ignore_parent = false); + virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, bool ignore_parent = false); ///get the current item type, see attribute cc_item_type above virtual int getItemType(); diff --git a/src/gui/components/cc_item_tvpic.h b/src/gui/components/cc_item_tvpic.h index c9df98018..280f6cb83 100644 --- a/src/gui/components/cc_item_tvpic.h +++ b/src/gui/components/cc_item_tvpic.h @@ -53,7 +53,7 @@ class CComponentsPIP : public CComponentsItem CComponentsPIP( const int x_pos = 0, const int y_pos = 0, const int percent = 30, CComponentsForm *parent = NULL, bool has_shadow = CC_SHADOW_OFF, - fb_pixel_t color_frame = COL_BLACK, fb_pixel_t color_body = COL_BACKGROUND, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); + fb_pixel_t color_frame = COL_BLACK, fb_pixel_t color_body = COL_BACKGROUND_PLUS_0, fb_pixel_t color_shadow = COL_MENUCONTENTDARK_PLUS_0); ~CComponentsPIP(); ///set property: width of tv box in pixel