clutter-actor: Initialize with the identity matrix in get_transform
authorNeil Roberts <neil@linux.intel.com>
Tue, 2 Mar 2010 18:30:31 +0000 (18:30 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 2 Mar 2010 18:43:22 +0000 (18:43 +0000)
commit048fcea988446af1ce18356eb1718f85088e73c8
treecc0a8b53e37ab7820ca49d7884f1a19b251116f5
parente550755f3dc13f11a9d956bb9b52294ea33c8da6
clutter-actor: Initialize with the identity matrix in get_transform

The documentation and name of the get_transformation_matrix function
implies that 'matrix' is purely an out parameter. However it wasn't
initializing the matrix before calling the 'apply_transform' virtual
so it was basically just a wrapper for the virtual. The virtual
assumes the matrix parameter is in/out and applies the actor's
transformation on top of any existing transformations. This causes
unexpected semantics that are inconsistent with the documentation.
clutter/clutter-actor.c