mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
Fixed ellipse behaviour for negative angles; fixed double to int conversion for negative numbers; fixed CLUTTER_ANGLE_FROM_DEGX; added ClutterVertices and clutter_actor_get_transformed_vertices()
This commit is contained in:
@ -844,7 +844,7 @@ _clutter_double_to_fixed (double val)
|
||||
*
|
||||
* Since: 0.2
|
||||
*/
|
||||
ClutterFixed
|
||||
gint
|
||||
_clutter_double_to_int (double val)
|
||||
{
|
||||
union
|
||||
@ -855,7 +855,7 @@ _clutter_double_to_int (double val)
|
||||
|
||||
dbl.d = val;
|
||||
dbl.d = dbl.d + _magic;
|
||||
return dbl.i[0] >> 16;
|
||||
return ((int)dbl.i[0]) >> 16;
|
||||
}
|
||||
|
||||
#undef _CFX_MAN
|
||||
|
Reference in New Issue
Block a user