diff options
author | Hermet Park <hermetpark@gmail.com> | 2018-06-14 20:23:51 +0900 |
---|---|---|
committer | Hermet Park <hermetpark@gmail.com> | 2018-06-14 20:23:51 +0900 |
commit | 6fbcfd5d8443c5d57ef9d864786dfee2c3282fc6 (patch) | |
tree | de4cd849691a241f23ee1225da3c8d3e1f185296 /src/lib/efl/interfaces/efl_gfx_shape.c | |
parent | a7e4c6703937fba7c1c5bafc7dcad7f321495288 (diff) |
efl interface: remove weired implementation.
This color interpolation should not a part of efl_gfx_shape.
Color should be interpolated by Vg.Node which implements Efl.Gfx.Color.
Diffstat (limited to '')
-rw-r--r-- | src/lib/efl/interfaces/efl_gfx_shape.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_shape.c b/src/lib/efl/interfaces/efl_gfx_shape.c index a6042f9de3..a9327c354c 100644 --- a/src/lib/efl/interfaces/efl_gfx_shape.c +++ b/src/lib/efl/interfaces/efl_gfx_shape.c | |||
@@ -42,7 +42,6 @@ struct _Efl_Gfx_Property | |||
42 | unsigned int dash_length; | 42 | unsigned int dash_length; |
43 | 43 | ||
44 | int r, g, b, a; | 44 | int r, g, b, a; |
45 | int fr, fg, fb, fa; | ||
46 | }; | 45 | }; |
47 | 46 | ||
48 | static inline void | 47 | static inline void |
@@ -51,8 +50,6 @@ _efl_gfx_property_get(const Eo *obj, Efl_Gfx_Property *property) | |||
51 | property->scale = efl_gfx_shape_stroke_scale_get(obj); | 50 | property->scale = efl_gfx_shape_stroke_scale_get(obj); |
52 | efl_gfx_shape_stroke_color_get(obj, &property->r, &property->g, | 51 | efl_gfx_shape_stroke_color_get(obj, &property->r, &property->g, |
53 | &property->b, &property->a); | 52 | &property->b, &property->a); |
54 | efl_gfx_color_get(obj, &property->fr, &property->fg, | ||
55 | &property->fb, &property->fa); | ||
56 | property->w = efl_gfx_shape_stroke_width_get(obj); | 53 | property->w = efl_gfx_shape_stroke_width_get(obj); |
57 | property->centered = efl_gfx_shape_stroke_location_get(obj); | 54 | property->centered = efl_gfx_shape_stroke_location_get(obj); |
58 | efl_gfx_shape_stroke_dash_get(obj, &property->dash, &property->dash_length); | 55 | efl_gfx_shape_stroke_dash_get(obj, &property->dash, &property->dash_length); |
@@ -112,13 +109,6 @@ _efl_gfx_shape_efl_gfx_path_interpolate(Eo *obj, Efl_Gfx_Shape_Data *pd, | |||
112 | pos_map), | 109 | pos_map), |
113 | interpolatei(property_from.a, property_to.a, | 110 | interpolatei(property_from.a, property_to.a, |
114 | pos_map)); | 111 | pos_map)); |
115 | //Color is not a part of Path. Is it correct?... | ||
116 | efl_gfx_color_set(obj, | ||
117 | interpolatei(property_from.fr, property_to.fr, pos_map), | ||
118 | interpolatei(property_from.fg, property_to.fg, pos_map), | ||
119 | interpolatei(property_from.fb, property_to.fb, pos_map), | ||
120 | interpolatei(property_from.fa, property_to.fa, pos_map)); | ||
121 | |||
122 | interv = interpolate(property_from.w, property_to.w, pos_map); | 112 | interv = interpolate(property_from.w, property_to.w, pos_map); |
123 | efl_gfx_shape_stroke_width_set(obj, interv); | 113 | efl_gfx_shape_stroke_width_set(obj, interv); |
124 | 114 | ||