summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/safeopenglgraphics.h')
-rw-r--r--src/safeopenglgraphics.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/safeopenglgraphics.h b/src/safeopenglgraphics.h
index 9be2ba943..6bc152b00 100644
--- a/src/safeopenglgraphics.h
+++ b/src/safeopenglgraphics.h
@@ -101,7 +101,11 @@ class SafeOpenGLGraphics final : public Graphics
void popClipArea();
- void setColor(const gcn::Color &color);
+ void setColor(const gcn::Color &color)
+ {
+ mColor = color;
+ mColorAlpha = (color.a != 255);
+ }
void drawPoint(int x, int y);