From 5f0a2c4504114f6e95097c048887363af0e7738c Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Wed, 21 Nov 2012 00:01:25 +0100 Subject: [PATCH] fix for latest Cython 0.17.2 --- kivy/graphics/transformation.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kivy/graphics/transformation.pyx b/kivy/graphics/transformation.pyx index 5a22aa0..8645975 100644 --- a/kivy/graphics/transformation.pyx +++ b/kivy/graphics/transformation.pyx @@ -183,7 +183,7 @@ cdef class Matrix: cpdef Matrix identity(self): '''Reset matrix to identity matrix (inplace) ''' - cdef double *m = self.mat + cdef double *m = self.mat with nogil: m[0] = m[5] = m[10] = m[15] = 1 m[1] = m[2] = m[3] = m[4] = m[6] = m[7] = \ @@ -194,7 +194,7 @@ cdef class Matrix: '''Return the inverted matrix ''' cdef Matrix mr = Matrix() - cdef double *m = self.mat, *r = mr.mat + cdef double *m = self.mat, *r = mr.mat cdef double det with nogil: det = m[0] * (m[5] * m[10] - m[9] * m[6]) \ @@ -230,7 +230,7 @@ cdef class Matrix: m.multiply(n) -> n * m ''' cdef Matrix mr = Matrix() - cdef double *a = ma.mat, *b = mb.mat, *r = mr.mat + cdef double *a = ma.mat, *b = mb.mat, *r = mr.mat with nogil: r[ 0] = a[ 0] * b[0] + a[ 1] * b[4] + a[ 2] * b[ 8] r[ 4] = a[ 4] * b[0] + a[ 5] * b[4] + a[ 6] * b[ 8] @@ -251,7 +251,7 @@ cdef class Matrix: return mr def __str__(self): - cdef double *m = self.mat + cdef double *m = self.mat return '[[ %f %f %f %f ]\n[ %f %f %f %f ]\n' \ '[ %f %f %f %f ]\n[ %f %f %f %f ]]' % ( m[0], m[1], m[2], m[3],