2007-10-01 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-fixed.h: Add CLUTTER_FIXED_TO_INT() and
	deprecate CLUTTER_FIXED_INT(), for symmetry with
	CLUTTER_FIXED_FROM_INT().

	* clutter/clutter-alpha.c:
	* clutter/clutter-behaviour-depth.c:
	* clutter/clutter-behaviour-ellipse.c:
	* clutter/clutter-behaviour-path.c:
	* clutter/clutter-fixed.h: Use CLUTTER_FIXED_TO_INT().
This commit is contained in:
Emmanuele Bassi
2007-10-02 14:53:32 +00:00
parent db0ed63c93
commit 4189c66a21
7 changed files with 42 additions and 17 deletions

View File

@ -207,7 +207,7 @@ clutter_sinx (ClutterFixed angle)
* Handle the end of the table gracefully
*/
indx1 = CLUTTER_FIXED_DIV (angle, CFX_SIN_STEP);
indx1 = CLUTTER_FIXED_INT (indx1);
indx1 = CLUTTER_FIXED_TO_INT (indx1);
if (indx1 == sizeof (sin_tbl)/sizeof (ClutterFixed) - 1)
{
@ -573,7 +573,7 @@ clutter_sqrtx (ClutterFixed x)
}
else
{
t = CLUTTER_FIXED_INT (x);
t = CLUTTER_FIXED_TO_INT (x);
}
/* Do a weighted average of the two nearest values */