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()