diff pytouhou/game/sprite.py @ 31:55973a3f1222

Some more optimization!
author Thibaut Girka <thib@sitedethib.com>
date Sat, 13 Aug 2011 00:02:11 +0200
parents e3ba2fa966f6
children 4d93d45ecb62
line wrap: on
line diff
--- a/pytouhou/game/sprite.py
+++ b/pytouhou/game/sprite.py
@@ -41,7 +41,7 @@ class Sprite(object):
         width = override_width or (tw * sx)
         height = override_height or (th * sy)
 
-        vertmat.scale(width, height, 1.)
+        vertmat.scale2d(width, height)
         if self.mirrored:
             vertmat.flip()
         if self.rotations_3d != (0., 0., 0.):