From: Stefano Rivera Date: Sun, 11 May 2014 21:21:02 +0000 (+0200) Subject: blit actually wants a pos, no need to calculate the rect X-Git-Tag: 0.1~380 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=85cfc03ea79f3d3de4210c76b32bd61d810c7f92;p=naja.git blit actually wants a pos, no need to calculate the rect --- diff --git a/naja/widgets/game_bits.py b/naja/widgets/game_bits.py index fdb10fc..682d520 100644 --- a/naja/widgets/game_bits.py +++ b/naja/widgets/game_bits.py @@ -18,4 +18,4 @@ class GameBitsWidget(Widget): def draw(self, surface): pass - #surface.blit(self.surface, self.rect) + #surface.blit(self.surface, self.pos) diff --git a/naja/widgets/info_area.py b/naja/widgets/info_area.py index e0789ef..ee9fccf 100644 --- a/naja/widgets/info_area.py +++ b/naja/widgets/info_area.py @@ -19,4 +19,4 @@ class InfoAreaWidget(Widget): def draw(self, surface): pass - #surface.blit(self.surface, self.rect) + #surface.blit(self.surface, self.pos) diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 5af028d..78e7f4c 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -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): diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py index a152f76..cba4658 100644 --- a/naja/widgets/tile.py +++ b/naja/widgets/tile.py @@ -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)