summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/normalopenglgraphics.h')
-rw-r--r--src/normalopenglgraphics.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h
index 874e68fad..feedeb65a 100644
--- a/src/normalopenglgraphics.h
+++ b/src/normalopenglgraphics.h
@@ -125,7 +125,11 @@ class NormalOpenGLGraphics 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);