diff pytouhou/game/background.py @ 90:630e9045e851

Minor refactoring
author Thibaut Girka <thib@sitedethib.com>
date Sun, 04 Sep 2011 10:12:15 +0200
parents 6a08f44fa01b
children 85f3b8ba3f24
line wrap: on
line diff
--- a/pytouhou/game/background.py
+++ b/pytouhou/game/background.py
@@ -76,9 +76,9 @@ class Background(object):
                 sprite = Sprite()
                 anm_runner = ANMRunner(self.anm_wrapper, script_index, sprite)
                 anm_runner.run_frame()
-                sprite.update()
+                sprite.update(width_override, height_override)
                 if sprite._changed:
-                    sprite.update_vertices_uvs_colors(width_override, height_override)
+                    sprite.update_vertices_uvs_colors()
                 uvs, vertices = sprite._uvs, tuple((x + ox, y + oy, z + oz) for x, y, z in sprite._vertices)
                 colors = sprite._colors
                 faces.append((vertices, uvs, colors))