blit actually wants a pos, no need to calculate the rect
[naja.git] / naja / widgets / text.py
index 74ca641bf7c1186144c94a2b03123b4e078677ec..78e7f4cda34da9965ff3d22d02480383104c55b5 100644 (file)
@@ -13,19 +13,19 @@ class TextWidget(Widget):
 
         self.text = text
         self.fontname = fontname or FONT
-        self.fontsize = (fontsize or FONT_SIZE) / 2
+        self.fontsize = (fontsize or FONT_SIZE) // 4
         self.colour = convert_colour(colour or (0, 0, 0))
 
     def prepare(self):
         self.font = resources.get_font(self.fontname, self.fontsize)
         text = self.font.render(self.text, True, self.colour)
         text_rect = text.get_rect()
-        self.surface = pygame.transform.scale(text, (text_rect.width * 2,
-                                                     text_rect.height * 2))
+        self.surface = pygame.transform.scale(text, (text_rect.width * 4,
+                                                     text_rect.height * 4))
         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):