diff pytouhou/interfaces/eosd.py @ 596:ab131d04987d

Fix a regression introduced in the previous commit when the interface has a different resolution than 640×480 and framebuffer_blit is enabled.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 25 Oct 2014 18:49:41 +0200
parents e15672733c93
children
line wrap: on
line diff
--- a/pytouhou/interfaces/eosd.py
+++ b/pytouhou/interfaces/eosd.py
@@ -17,16 +17,16 @@ from pytouhou.game.text import Text, Cou
 
 
 class EoSDInterface(object):
+    width = 640
+    height = 480
+    game_pos = (32, 16)
+
     def __init__(self, resource_loader, player_state):
         self.game = None
         self.player_state = player_state
         front = resource_loader.get_single_anm('front.anm')
         self.ascii_anm = resource_loader.get_single_anm('ascii.anm')
 
-        self.width = 640
-        self.height = 480
-        self.game_pos = (32, 16)
-
         self.highscore = 1000000 #TODO: read score.dat
         self.items = ([Effect((0, 32 * i), 6, front) for i in range(15)] +
                       [Effect((416 + 32 * i, 32 * j), 6, front) for i in range(7) for j in range(15)] +