matrix: Fix the init_with_matrix() implementation

As usual, I swapped the memcpy() arguments around.
This commit is contained in:
Emmanuele Bassi 2012-08-16 16:13:38 +01:00
parent e9bcb4cf6e
commit f7dd2d3746
2 changed files with 9 additions and 11 deletions

View File

@ -1377,9 +1377,7 @@ clutter_matrix_init_from_array (ClutterMatrix *matrix,
*/ */
ClutterMatrix * ClutterMatrix *
clutter_matrix_init_from_matrix (ClutterMatrix *a, clutter_matrix_init_from_matrix (ClutterMatrix *a,
ClutterMatrix *b) const ClutterMatrix *b)
{ {
memcpy (b, a, sizeof (ClutterMatrix)); return memcpy (a, b, sizeof (ClutterMatrix));
return a;
} }

View File

@ -701,7 +701,7 @@ ClutterMatrix * clutter_matrix_init_identity (ClutterMatrix *matrix);
ClutterMatrix * clutter_matrix_init_from_array (ClutterMatrix *matrix, ClutterMatrix * clutter_matrix_init_from_array (ClutterMatrix *matrix,
const float values[16]); const float values[16]);
ClutterMatrix * clutter_matrix_init_from_matrix (ClutterMatrix *a, ClutterMatrix * clutter_matrix_init_from_matrix (ClutterMatrix *a,
ClutterMatrix *b); const ClutterMatrix *b);
void clutter_matrix_free (ClutterMatrix *matrix); void clutter_matrix_free (ClutterMatrix *matrix);
G_END_DECLS G_END_DECLS