diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-26 17:00:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-27 23:15:04 +0300 |
commit | 53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6 (patch) | |
tree | aaeb9cb039c8a992d5b82361279f17d7518ad3c3 /src/graphics.h | |
parent | c8465553c8a3d86dc1dda153e94f40331aa687d1 (diff) | |
download | ManaVerse-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.tar.gz ManaVerse-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.tar.bz2 ManaVerse-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.tar.xz ManaVerse-53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6.zip |
Move setColor in graphics classes from cpp to h.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphics.h b/src/graphics.h index 0c62191e5..72e7c4dbb 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -327,7 +327,11 @@ class Graphics : public gcn::SDLGraphics virtual void initArrays() { } - void setColor(const gcn::Color &color); + void setColor(const gcn::Color &color) + { + mColor = color; + mAlpha = (color.a != 255); + } #ifdef DEBUG_DRAW_CALLS virtual unsigned int getDrawCalls() const |