mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
matrix: Fix the init_with_matrix() implementation
As usual, I swapped the memcpy() arguments around.
This commit is contained in:
parent
e9bcb4cf6e
commit
f7dd2d3746
@ -1376,10 +1376,8 @@ clutter_matrix_init_from_array (ClutterMatrix *matrix,
|
|||||||
* Since: 1.12
|
* Since: 1.12
|
||||||
*/
|
*/
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
@ -697,12 +697,12 @@ void clutter_interval_register_progress_func (GType value_type,
|
|||||||
GType clutter_matrix_get_type (void) G_GNUC_CONST;
|
GType clutter_matrix_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
ClutterMatrix * clutter_matrix_alloc (void);
|
ClutterMatrix * clutter_matrix_alloc (void);
|
||||||
ClutterMatrix * clutter_matrix_init_identity (ClutterMatrix *matrix);
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user