summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 2086981de..c6f8cf57a 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -1206,3 +1206,9 @@ void Graphics::fillRectangle(const gcn::Rectangle& rectangle)
SDL_FillRect(mTarget, &rect, color);
}
}
+
+void Graphics::setColor(const gcn::Color &color)
+{
+ mColor = color;
+ mAlpha = (color.a != 255);
+}