CCDraw: Add function for cleanup gradient background

Origin commit data
------------------
Branch: ni/coolstream
Commit: bf0f63467d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-26 (Tue, 26 Jan 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-01-26 06:16:35 +01:00
parent 0db98c17ec
commit be2781899a
2 changed files with 9 additions and 2 deletions

View File

@@ -142,6 +142,8 @@ class CCDraw : public COSDFader, public CComponentsSignals
///sub: get gradient data evaluted with current parameters
gradientData_t* getGradientData();
bool gradientBgCleanUp;
///rendering of framebuffer elements at once,
///elements are contained in v_fbdata, presumes added frambuffer elements with paintInit(),
///parameter do_save_bg=true, saves background of element to pixel buffer, this can be restore with hide()
@@ -315,6 +317,9 @@ class CCDraw : public COSDFader, public CComponentsSignals
///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_PLUS_0 (empty background)
virtual void kill(const fb_pixel_t& bg_color = COL_BACKGROUND_PLUS_0, const int& corner_radius = -1);
virtual void enableGradientBgCleanUp(bool enable = true) { gradientBgCleanUp = enable; };
virtual void disableGradientBgCleanUp(){ enableGradientBgCleanUp(false); };
};
#endif