From 85cfc03ea79f3d3de4210c76b32bd61d810c7f92 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 11 May 2014 23:21:02 +0200 Subject: [PATCH] blit actually wants a pos, no need to calculate the rect --- naja/widgets/game_bits.py | 2 +- naja/widgets/info_area.py | 2 +- naja/widgets/text.py | 2 +- naja/widgets/tile.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.34.1