Skip to content

Commit

Permalink
Avoiding user sugar-colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pro-Panda committed Feb 8, 2018
1 parent c92ed79 commit 453a383
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CowBulls.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, level=3, parent=None, colors=None):
self.parent.update_score(self.score)

def display(self):
g.screen.fill(self.colors[1])
g.screen.fill(g.BG_COLOR)
for x in range(3):
for y in range(4):
utils.blit_offset('dialpad/no-glow',
Expand Down
9 changes: 3 additions & 6 deletions activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ def __init__(self, handle):
activity.Activity.__init__(self, handle)

self._sugarcolors = profile.get_color().to_string().split(',')
colors = [[int(self._sugarcolors[0][1:3], 16),
int(self._sugarcolors[0][3:5], 16),
int(self._sugarcolors[0][5:7], 16)],
[int(self._sugarcolors[1][1:3], 16),
int(self._sugarcolors[1][3:5], 16),
int(self._sugarcolors[1][5:7], 16)]]
colors = [int(self._sugarcolors[0][1:3], 16),
int(self._sugarcolors[0][3:5], 16),
int(self._sugarcolors[0][5:7], 16)]

# No sharing (Future Improvement)
self.max_participants = 1
Expand Down
1 change: 0 additions & 1 deletion g.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def init():

screen = pygame.display.get_surface()
pygame.display.set_caption(app)
screen.fill(BG_COLOR)
pygame.display.flip()
w, h = screen.get_size()
scale = min([w / 1200.0, h / 700.0])
Expand Down

0 comments on commit 453a383

Please sign in to comment.