From 9fd211f81a86d9d02a84f43ce8cc79f39641420a Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 18 May 2014 20:36:24 +0200 Subject: [PATCH] CComponents/CComponentsItem: use correct background color color "0" was wrong Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/7096e701b6e72a9c22c0c5aad5f3d9f5b2b753cf Author: Thilo Graf Date: 2014-05-18 (Sun, 18 May 2014) ------------------ This commit was generated by Migit --- src/gui/components/cc_base.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_base.h b/src/gui/components/cc_base.h index cc011de18..5c991366e 100644 --- a/src/gui/components/cc_base.h +++ b/src/gui/components/cc_base.h @@ -203,8 +203,8 @@ class CComponents 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 0 (empty background) - virtual void kill(const fb_pixel_t& bg_color = 0); + ///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); ///returns paint mode, true=item was painted virtual bool isPainted(){return is_painted;} @@ -268,7 +268,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 = 0, bool ignore_parent = false); + virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND, bool ignore_parent = false); ///get the current item type, see attribute cc_item_type above virtual int getItemType();