summaryrefslogtreecommitdiff
path: root/src/safeopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-26 17:00:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-27 23:15:04 +0300
commit53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6 (patch)
treeaaeb9cb039c8a992d5b82361279f17d7518ad3c3 /src/safeopenglgraphics.h
parentc8465553c8a3d86dc1dda153e94f40331aa687d1 (diff)
downloadplus-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.tar.gz
plus-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.tar.bz2
plus-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.tar.xz
plus-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.zip
Move setColor in graphics classes from cpp to h.
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);