mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 04:50:05 +01:00
transformIsIdentity() now doesn't accept a zero matrix as the identity.
Added a non-zero test for one of the diagonal values.
(cherry picked from 594d4019c6 commit)
This commit is contained in:
parent
dce3f2a9ce
commit
a2d528068f
1 changed files with 1 additions and 0 deletions
|
|
@ -1464,6 +1464,7 @@ transformIsIdentity(PictTransform *t)
|
|||
{
|
||||
return ((t->matrix[0][0] == t->matrix[1][1]) &&
|
||||
(t->matrix[0][0] == t->matrix[2][2]) &&
|
||||
(t->matrix[0][0] != 0) &&
|
||||
(t->matrix[0][1] == 0) &&
|
||||
(t->matrix[0][2] == 0) &&
|
||||
(t->matrix[1][0] == 0) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue