diff pytouhou/ui/texture.pyx @ 511:2e8ceaa85d5c

Don’t type the renderer in GameRunner, so that we can switch it without type issues.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 28 Nov 2013 18:55:43 +0100
parents bfea9e9a6845
children
line wrap: on
line diff
--- a/pytouhou/ui/texture.pyx
+++ b/pytouhou/ui/texture.pyx
@@ -32,7 +32,7 @@ cdef class TextureManager:
         self.texture_class = texture_class
 
 
-    cdef load(self, dict anms):
+    cdef void load(self, dict anms):
         for anm in sorted(anms.values(), key=is_ascii):
             for entry in anm:
                 if not hasattr(entry, 'texture'):
@@ -54,7 +54,7 @@ cdef class FontManager:
         self.texture_class = texture_class
 
 
-    cdef load(self, list labels):
+    cdef void load(self, list labels):
         cdef NativeText label
 
         for label in labels: