blit actually wants a pos, no need to calculate the rect
[naja.git] / naja / widgets / info_area.py
index 2f9331169284415cb2875de7c43c829d1ca971f7..ee9fccfdb5abd6d422f3855c549718ea4af9e6fe 100644 (file)
@@ -2,7 +2,9 @@
 Widget for the game board information area.
 """
 
-from .base import Widget
+from naja.constants import INFO_SIZE
+
+from naja.widgets.base import Widget
 
 
 class InfoAreaWidget(Widget):
@@ -10,10 +12,11 @@ class InfoAreaWidget(Widget):
     Widget for the game board information area.
     """
     def __init__(self, pos, image=None):
-        super(InfoAreaWidget, self).__init__(pos, (96, 96))
+        super(InfoAreaWidget, self).__init__(pos, INFO_SIZE)
 
     def prepare(self):
         pass
 
     def draw(self, surface):
-        surface.blit(self.surface, self.rect)
+        pass
+        #surface.blit(self.surface, self.pos)