/*
- * $XFree86: $
+ * $RCSId: $
*
- * Copyright © 2000 Tuomas J. Lukka
+ * Copyright © 2000 Tuomas J. Lukka
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* PERFORMANCE OF THIS SOFTWARE.
*/
+#include "fcint.h"
#include <math.h>
#include <stdlib.h>
#include <ctype.h>
-#include "fcint.h"
+
+const FcMatrix FcIdentityMatrix = { 1, 0, 0, 1 };
FcMatrix *
FcMatrixCopy (const FcMatrix *mat)
void
FcMatrixFree (FcMatrix *mat)
{
- FcMemFree (FC_MEM_MATRIX, sizeof (FcMatrix));
- free (mat);
+ if (mat != &FcIdentityMatrix)
+ {
+ FcMemFree (FC_MEM_MATRIX, sizeof (FcMatrix));
+ free (mat);
+ }
}
FcBool
r.yy = 1;
FcMatrixMultiply (m, &r, m);
}
+#define __fcmatrix__
+#include "fcaliastail.h"
+#undef __fcmatrix__