# HG changeset patch # User Emmanuel Gil Peyrot # Date 1429463319 -7200 # Node ID df3c4ef5f2cc78bf53e6e63721f228f421d9d81b # Parent ec972eb443916c45d468070e4eca354d37cd5aaf Partially revert 98603f2c32b4, as the creation of a .h file made some checking tools unhappy. diff --git a/pytouhou/game/sprite.pxd b/pytouhou/game/sprite.pxd --- a/pytouhou/game/sprite.pxd +++ b/pytouhou/game/sprite.pxd @@ -1,7 +1,7 @@ from pytouhou.utils.interpolator cimport Interpolator from pytouhou.formats.animation cimport Animation -cdef public class Sprite[object Sprite, type SpriteType]: +cdef class Sprite: cdef public int blendfunc, frame cdef public float width_override, height_override, angle cdef public bint removed, changed, visible, force_rotation diff --git a/pytouhou/game/sprite.pyx b/pytouhou/game/sprite.pyx --- a/pytouhou/game/sprite.pyx +++ b/pytouhou/game/sprite.pyx @@ -16,7 +16,7 @@ from libc.stdlib cimport free from libc.string cimport memcpy -cdef public class Sprite[object Sprite, type SpriteType]: +cdef class Sprite: def __dealloc__(self): if self._rendering_data != NULL: free(self._rendering_data)