mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CCDraw: use ccdraw namespace
This commit is contained in:
@@ -71,7 +71,7 @@ CCDraw::CCDraw() : COSDFader(g_settings.theme.menu_Content_alpha)
|
|||||||
cc_body_gradient_saturation = 0xC0;
|
cc_body_gradient_saturation = 0xC0;
|
||||||
cc_body_gradient_direction = cc_body_gradient_direction_old = CFrameBuffer::gradientVertical;
|
cc_body_gradient_direction = cc_body_gradient_direction_old = CFrameBuffer::gradientVertical;
|
||||||
|
|
||||||
gradientBgCleanUp = false;
|
cc_gradient_bg_cleanup = false;
|
||||||
|
|
||||||
v_fbdata.clear();
|
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 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);
|
frameBuffer->paintBoxRel(fbdata.x, fbdata.y, fbdata.dx, fbdata.dy, 0, fbdata.r, fbdata.rtype);
|
||||||
if (fbdata.gradient_data->boxBuf == NULL){
|
if (fbdata.gradient_data->boxBuf == NULL){
|
||||||
dprintf(DEBUG_INFO, "\033[33m[CCDraw]\t[%s - %d], paint new gradient)...\033[0m\n", __func__, __LINE__);
|
dprintf(DEBUG_INFO, "\033[33m[CCDraw]\t[%s - %d], paint new gradient)...\033[0m\n", __func__, __LINE__);
|
||||||
|
@@ -142,7 +142,7 @@ class CCDraw : public COSDFader, public CComponentsSignals
|
|||||||
///sub: get gradient data evaluted with current parameters
|
///sub: get gradient data evaluted with current parameters
|
||||||
gradientData_t* getGradientData();
|
gradientData_t* getGradientData();
|
||||||
|
|
||||||
bool gradientBgCleanUp;
|
bool cc_gradient_bg_cleanup;
|
||||||
|
|
||||||
///rendering of framebuffer elements at once,
|
///rendering of framebuffer elements at once,
|
||||||
///elements are contained in v_fbdata, presumes added frambuffer elements with paintInit(),
|
///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)
|
///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 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); };
|
virtual void disableGradientBgCleanUp(){ enableGradientBgCleanUp(false); };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user