diff gamelib/gui_base.py @ 74:22b65c943712

prettified main menu - temp background
author Rizmari Versfeld <rizziepit@gmail.com>
date Wed, 09 May 2012 00:08:57 +0200
parents 20b01d100ff5
children ff7c953502d5 93ba0f1b4e06
line wrap: on
line diff
--- a/gamelib/gui_base.py	Tue May 08 23:11:03 2012 +0200
+++ b/gamelib/gui_base.py	Wed May 09 00:08:57 2012 +0200
@@ -170,9 +170,9 @@
         size = self.font.size(self.text)
         if self.shadow:
             s = self.font.render(self.text, True, (128, 128, 128))
-            temp = Surface((s.get_width() + 2, s.get_width() + 2), SRCALPHA)
+            temp = Surface((s.get_width() + 1, s.get_width() + 1), SRCALPHA)
             temp.fill((255, 255, 255, 0))
-            temp.blit(s, (2, 2))
+            temp.blit(s, (1, 1))
             temp.blit(self.text_surface, (0, 0))
             self.text_surface = temp
             size = [s + 2 for s in size]