Background is now black instead of white

This commit is contained in:
Balthasar Reuter
2015-05-29 00:36:34 +02:00
parent 9d017ab887
commit cdf3908a3f

View File

@@ -99,7 +99,7 @@ class GUI_PyGame:
# Clear screen # Clear screen
self.clear() self.clear()
def clear(self, color=(255,255,255)): def clear(self, color=(0,0,0)):
self.screen.fill(color) self.screen.fill(color)
def apply(self): def apply(self):
@@ -129,7 +129,7 @@ class GUI_PyGame:
# Choose font # Choose font
font = pygame.font.Font(None, 48) font = pygame.font.Font(None, 48)
# Render text # Render text
text = font.render(msg, 1, (10,10,10)) text = font.render(msg, 1, (245,245,245))
# Position and display text # Position and display text
textpos = text.get_rect() textpos = text.get_rect()
textpos.centerx = self.screen.get_rect().centerx textpos.centerx = self.screen.get_rect().centerx