mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user