summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 0c62191e5..72e7c4dbb 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -327,7 +327,11 @@ class Graphics : public gcn::SDLGraphics
virtual void initArrays()
{ }
- void setColor(const gcn::Color &color);
+ void setColor(const gcn::Color &color)
+ {
+ mColor = color;
+ mAlpha = (color.a != 255);
+ }
#ifdef DEBUG_DRAW_CALLS
virtual unsigned int getDrawCalls() const