CCDraw: use ccdraw namespace

Origin commit data
------------------
Branch: ni/coolstream
Commit: 063ccbb622
Author: Thilo Graf <dbt@novatux.de>
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:
2016-01-26 06:16:39 +01:00
committed by Michael Liebmann
parent be2781899a
commit 1b538b6cf7
2 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha)
cc_body_gradient_saturation = 0xC0;
cc_body_gradient_direction = cc_body_gradient_direction_old = CFrameBuffer::gradientVertical;
gradientBgCleanUp = false;
cc_gradient_bg_cleanup = false;
v_fbdata.clear();
}
@@ -593,7 +593,7 @@ void CCDraw::paintFbItems(bool do_save_bg)
}
// if found empty gradient buffer, create it, otherwise paint from cache
if (gradientBgCleanUp)
if (cc_gradient_bg_cleanup)
frameBuffer->paintBoxRel(fbdata.x, fbdata.y, fbdata.dx, fbdata.dy, 0, fbdata.r, fbdata.rtype);
if (fbdata.gradient_data->boxBuf == NULL){
dprintf(DEBUG_INFO, "\033[33m[CCDraw]\t[%s - %d], paint new gradient)...\033[0m\n", __func__, __LINE__);

View File

@@ -142,7 +142,7 @@ class CCDraw : public COSDFader, public CComponentsSignals
///sub: get gradient data evaluted with current parameters
gradientData_t* getGradientData();
bool gradientBgCleanUp;
bool cc_gradient_bg_cleanup;
///rendering of framebuffer elements at once,
///elements are contained in v_fbdata, presumes added frambuffer elements with paintInit(),
@@ -318,7 +318,7 @@ class CCDraw : public COSDFader, public CComponentsSignals
///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 enableGradientBgCleanUp(bool enable = true) { cc_gradient_bg_cleanup = enable; };
virtual void disableGradientBgCleanUp(){ enableGradientBgCleanUp(false); };
};