From 0eae2486503608d0ff5449c48ff0fd862e30835c Mon Sep 17 00:00:00 2001 From: nhydock Date: Mon, 1 Aug 2011 14:46:36 -0400 Subject: [PATCH] Makes sure the color applied to fonts only effects that layer --- src/Rockmeter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Rockmeter.py b/src/Rockmeter.py index 226e0e66b..e3d3870ca 100644 --- a/src/Rockmeter.py +++ b/src/Rockmeter.py @@ -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):