* clutter/clutter-actor.c: (clutter_actor_transform_stage_point):
Check that x_out and y_out != NULL before setting their contents
This commit is contained in:
parent
5eb9bbc1f3
commit
3878e6730a
@ -1,3 +1,8 @@
|
|||||||
|
2008-02-04 Chris Lord <chris@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-actor.c: (clutter_actor_transform_stage_point):
|
||||||
|
Check that x_out and y_out != NULL before setting their contents
|
||||||
|
|
||||||
2008-02-04 Øyvind Kolås <pippin@o-hand.com>
|
2008-02-04 Øyvind Kolås <pippin@o-hand.com>
|
||||||
|
|
||||||
* clutter/clutter-timeline.c: (clutter_timeline_rewind): updated
|
* clutter/clutter-timeline.c: (clutter_timeline_rewind): updated
|
||||||
|
@ -4862,9 +4862,11 @@ clutter_actor_transform_stage_point (ClutterActor *self,
|
|||||||
wf = xi*ST[0][2] + yi*ST[1][2] + ST[2][2];
|
wf = xi*ST[0][2] + yi*ST[1][2] + ST[2][2];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The division needs to be done in floating point for precission reasons.
|
* The division needs to be done in floating point for precision reasons.
|
||||||
*/
|
*/
|
||||||
|
if (x_out)
|
||||||
*x_out = CLUTTER_UNITS_FROM_FLOAT (FX2FP (xf) / FX2FP (wf));
|
*x_out = CLUTTER_UNITS_FROM_FLOAT (FX2FP (xf) / FX2FP (wf));
|
||||||
|
if (y_out)
|
||||||
*y_out = CLUTTER_UNITS_FROM_FLOAT (FX2FP (yf) / FX2FP (wf));
|
*y_out = CLUTTER_UNITS_FROM_FLOAT (FX2FP (yf) / FX2FP (wf));
|
||||||
|
|
||||||
#undef FP2FX
|
#undef FP2FX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user