summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-26 16:40:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-27 23:15:04 +0300
commitc8465553c8a3d86dc1dda153e94f40331aa687d1 (patch)
treed3cc5650f7a8d83b70ed7f2155b2c1f32b24ad5e /src/graphics.cpp
parent468b24f6aeab58838432a3dd9774ad2e7ac87ea8 (diff)
downloadmanaverse-c8465553c8a3d86dc1dda153e94f40331aa687d1.tar.gz
manaverse-c8465553c8a3d86dc1dda153e94f40331aa687d1.tar.bz2
manaverse-c8465553c8a3d86dc1dda153e94f40331aa687d1.tar.xz
manaverse-c8465553c8a3d86dc1dda153e94f40331aa687d1.zip
Move setColor from guichan to own graphics class.
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);
+}