Commit 1bef7d3a authored by Emmanuele Bassi's avatar Emmanuele Bassi

2008-02-26 Emmanuele Bassi <ebassi@openedhand.com>

	* clutter/clutter-alpha.c:
	(clutter_exp_inc_func),	(clutter_exp_dec_func): Clamp the value
	of the alpha function between [0, MAX_ALPHA]. (#800)
parent b5bcee6c
2008-02-26 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-alpha.c:
(clutter_exp_inc_func), (clutter_exp_dec_func): Clamp the value
of the alpha function between [0, MAX_ALPHA]. (#800)
2008-02-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.c (emit_event): Fix the last commit
......
......@@ -925,7 +925,7 @@ clutter_exp_inc_func (ClutterAlpha *alpha,
x = x_alpha_max * frame / n_frames;
result = clutter_pow2x (x) - 1;
result = CLAMP (clutter_pow2x (x) - 1, 0, CLUTTER_ALPHA_MAX_ALPHA);
return result;
}
......@@ -976,7 +976,7 @@ clutter_exp_dec_func (ClutterAlpha *alpha,
x = (x_alpha_max * (n_frames - frame)) / n_frames;
result = clutter_pow2x (x) - 1;
result = CLAMP (clutter_pow2x (x) - 1, 0, CLUTTER_ALPHA_MAX_ALPHA);
return result;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment