summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/safeopenglgraphics.h')
-rw-r--r--src/safeopenglgraphics.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/safeopenglgraphics.h b/src/safeopenglgraphics.h
index d9b7af5bd..61a34e07c 100644
--- a/src/safeopenglgraphics.h
+++ b/src/safeopenglgraphics.h
@@ -108,6 +108,13 @@ class SafeOpenGLGraphics final : public Graphics
mColorAlpha = (color.a != 255);
}
+ void setColorAll(const gcn::Color &color, const gcn::Color &color2)
+ {
+ mColor = color;
+ mColor2 = color2;
+ mColorAlpha = (color.a != 255);
+ }
+
void drawPoint(int x, int y);
void drawLine(int x1, int y1, int x2, int y2);