diff pytouhou/ui/gamerenderer.py @ 406:705870483559

Fix the --no-background option.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 30 Apr 2013 01:48:25 +0200
parents 3ce4065840e9
children 5fe6cd6ceb48
line wrap: on
line diff
--- a/pytouhou/ui/gamerenderer.py
+++ b/pytouhou/ui/gamerenderer.py
@@ -43,6 +43,8 @@ class GameRenderer(Renderer):
         if game:
             # Preload textures
             self.texture_manager.preload(game.resource_loader.instanced_anms.values())
+
+        if background:
             self.prerender_background(background)