[StThemeNodeTransition] Do not access CoglColor private members directly
We should not access CoglColor members directly since they are private starting with clutter 1.3. Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
This commit is contained in:
parent
466f661436
commit
0e91a213f5
@ -252,7 +252,7 @@ st_theme_node_transition_paint (StThemeNodeTransition *transition,
|
|||||||
StThemeNodeTransitionPrivate *priv = transition->priv;
|
StThemeNodeTransitionPrivate *priv = transition->priv;
|
||||||
|
|
||||||
guint width, height;
|
guint width, height;
|
||||||
CoglColor constant = { 0, 0, 0, 0 };
|
CoglColor constant;
|
||||||
float tex_coords[] = {
|
float tex_coords[] = {
|
||||||
0.0, 0.0, 1.0, 1.0,
|
0.0, 0.0, 1.0, 1.0,
|
||||||
0.0, 0.0, 1.0, 1.0,
|
0.0, 0.0, 1.0, 1.0,
|
||||||
@ -279,7 +279,8 @@ st_theme_node_transition_paint (StThemeNodeTransition *transition,
|
|||||||
width = cogl_texture_get_width (priv->old_texture);
|
width = cogl_texture_get_width (priv->old_texture);
|
||||||
height = cogl_texture_get_height (priv->old_texture);
|
height = cogl_texture_get_height (priv->old_texture);
|
||||||
|
|
||||||
constant.alpha = clutter_alpha_get_alpha (priv->alpha) * paint_opacity;
|
cogl_color_set_from_4ub (&constant, 0, 0, 0,
|
||||||
|
clutter_alpha_get_alpha (priv->alpha) * paint_opacity);
|
||||||
|
|
||||||
cogl_material_set_layer_combine_constant (priv->material, 1, &constant);
|
cogl_material_set_layer_combine_constant (priv->material, 1, &constant);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user