mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
fixup! cogl/matrix: Scale using Graphene
This commit is contained in:
parent
f5fe0c05ab
commit
b1c0128a2b
@ -254,24 +254,11 @@ cogl_matrix_scale (CoglMatrix *matrix,
|
||||
float sz)
|
||||
{
|
||||
graphene_matrix_t m;
|
||||
CoglMatrix old;
|
||||
|
||||
cogl_matrix_to_graphene_matrix (matrix, &m);
|
||||
|
||||
/* Cogl moves the matrix to 0, scales it, then moves back
|
||||
* to the previous transform point. To ease transition,
|
||||
* preserve that behavior.
|
||||
*/
|
||||
old = *matrix;
|
||||
|
||||
graphene_matrix_scale (&m, sx, sy, sz);
|
||||
graphene_matrix_to_cogl_matrix (&m, matrix);
|
||||
|
||||
matrix->wx = old.wx;
|
||||
matrix->wy = old.wy;
|
||||
matrix->wz = old.wz;
|
||||
matrix->ww = old.ww;
|
||||
|
||||
_COGL_MATRIX_DEBUG_PRINT (matrix);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user