gradient: try to fix delete gradient data only on color change

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
[CST] Focus
2015-04-27 09:25:21 +02:00
committed by Thilo Graf
parent d8da2a3087
commit 53ce471af8
3 changed files with 23 additions and 10 deletions

View File

@@ -72,6 +72,7 @@ class CComponents : public CComponentsSignals, public COSDFader
void *cc_tag;
///property: color of body
fb_pixel_t col_body;
fb_pixel_t old_gradient_color;
///property: color of shadow
fb_pixel_t col_shadow;
///property: color of frame
@@ -81,8 +82,6 @@ class CComponents : public CComponentsSignals, public COSDFader
///property: contains data for gradiant handling
gradientData_t cc_gradientData;
///gradiant pixel buffer
fb_pixel_t *cc_body_gradientBuf;
///property: true component can paint gradient, see also enableColBodyGradient()
bool col_body_gradient;
///property: background gradient mode