blit actually wants a pos, no need to calculate the rect
authorStefano Rivera <stefano@rivera.za.net>
Sun, 11 May 2014 21:21:02 +0000 (23:21 +0200)
committerStefano Rivera <stefano@rivera.za.net>
Sun, 11 May 2014 21:21:02 +0000 (23:21 +0200)
naja/widgets/game_bits.py
naja/widgets/info_area.py
naja/widgets/text.py
naja/widgets/tile.py

index fdb10fcd72ba7ef94435697ed8fc26cc30fac0a5..682d520531a366790727212ac3786dc2c35d46da 100644 (file)
@@ -18,4 +18,4 @@ class GameBitsWidget(Widget):
 
     def draw(self, surface):
         pass
-        #surface.blit(self.surface, self.rect)
+        #surface.blit(self.surface, self.pos)
index e0789ef47f45767f86b9b0e64358153b70b1257e..ee9fccfdb5abd6d422f3855c549718ea4af9e6fe 100644 (file)
@@ -19,4 +19,4 @@ class InfoAreaWidget(Widget):
 
     def draw(self, surface):
         pass
-        #surface.blit(self.surface, self.rect)
+        #surface.blit(self.surface, self.pos)
index 5af028daf48cfd411959780f4cd17c2ea64ac7ab..78e7f4cda34da9965ff3d22d02480383104c55b5 100644 (file)
@@ -25,7 +25,7 @@ class TextWidget(Widget):
         self.size = self.surface.get_rect().size
 
     def draw(self, surface):
-        surface.blit(self.surface, self.rect)
+        surface.blit(self.surface, self.pos)
 
 
 class TextBoxWidget(TextWidget):
index a152f765a102de9511e030b84ec4285337ad04d3..cba4658e147b59558cba4e28709b9e0e77a359e2 100644 (file)
@@ -47,4 +47,4 @@ class TileWidget(Widget):
                 y_offset += 32
 
     def draw(self, surface):
-        surface.blit(self.surface, self.rect)
+        surface.blit(self.surface, self.pos)