Skip to content

Commit

Permalink
Makes sure the color applied to fonts only effects that layer
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Aug 1, 2011
1 parent 6744c30 commit 0eae248
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Rockmeter.py
Expand Up @@ -320,10 +320,11 @@ def render(self, visibility, playerNum):
color = self.color

if bool(eval(self.condition)):
glColor4f(*color)
self.font.render(self.text, position, align = alignment,
glPushMatrix()
glColor4f(*color)
self.font.render(self.text, position, align = alignment,
shadow = self.shadow, outline = self.outline, shadowOpacity = self.shadowOpacity)

glPopMatrix()

#creates a layer that is shaped like a pie-slice/circle instead of a rectangle
class CircleLayer(ImageLayer):
Expand Down

0 comments on commit 0eae248

Please sign in to comment.