From 67e8bb9013d20c18a27f6ad980dafad5ff23b876 Mon Sep 17 00:00:00 2001 From: Apoorv Goel Date: Sun, 27 Apr 2014 16:09:43 +0300 Subject: [PATCH] bug fix --- text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text.py b/text.py index 73c709c..3060f6c 100644 --- a/text.py +++ b/text.py @@ -11,7 +11,7 @@ def __init__(self, text, height, pos_x, pos_y, text_color): self.text_color = text_color self.text = text self.font = pygame.font.Font(None, height) - self.image = self.font.render(self.text, True, self.text_color, None) + self.image = self.font.render(self.text, True, self.text_color) self.rect = self.image.get_rect() self.rect.x = pos_x self.rect.y = pos_y @@ -30,7 +30,7 @@ def update(self): def __update_rect__(self): # render text, store old coordinates and set new text rect to old position - self.image = self.font.render(self.text, True, self.text_color, None) + self.image = self.font.render(self.text, True, self.text_color) old_rect_y = self.rect.y old_rect_x = self.rect.x self.rect = self.image.get_rect()