diff pytouhou/ui/sdl/gamerenderer.py @ 551:0d7a16e0f834

Don’t display spellcard backgrounds either with the SDL backend.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 27 May 2014 17:41:52 +0200
parents 56bca8ce4b68
children e15672733c93
line wrap: on
line diff
--- a/pytouhou/ui/sdl/gamerenderer.py
+++ b/pytouhou/ui/sdl/gamerenderer.py
@@ -58,10 +58,7 @@ class GameRenderer(object):
         self.window.win.render_set_clip_rect(Rect(x, -y, game.width, game.height))
 
         if game is not None:
-            if game.spellcard_effect is not None:
-                self.render_elements([game.spellcard_effect])
-            else:
-                self.window.win.render_clear()
+            self.window.win.render_clear()
 
             self.render_elements([enemy for enemy in game.enemies if enemy.visible])
             self.render_elements(game.effects)