diff pytouhou/interfaces/sample.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 56bca8ce4b68
children
line wrap: on
line diff
--- a/pytouhou/interfaces/sample.py
+++ b/pytouhou/interfaces/sample.py
@@ -13,15 +13,15 @@
 ##
 
 class SampleInterface(object):
+    width = 384
+    height = 448
+    game_pos = (0, 0)
+
     def __init__(self, resource_loader, player_state):
         self.game = None
         self.player_state = player_state
         self.ascii_anm = resource_loader.get_single_anm('ascii.anm') #XXX
 
-        self.width = 384
-        self.height = 448
-        self.game_pos = (0, 32)
-
         self.items = []
         self.level_start = []
         self.labels = {}