diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-26 17:40:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-27 23:15:04 +0300 |
commit | 0abab7e8e92329b0cd8ec23807a1d3102d8ec136 (patch) | |
tree | 162866ee6e5f8a2f9e45b156cc4568c9b5268548 /src/graphics.h | |
parent | 53db1412f7d6e29e9e1cfdb272a40ebb30ba1fe6 (diff) | |
download | manaplus-0abab7e8e92329b0cd8ec23807a1d3102d8ec136.tar.gz manaplus-0abab7e8e92329b0cd8ec23807a1d3102d8ec136.tar.bz2 manaplus-0abab7e8e92329b0cd8ec23807a1d3102d8ec136.tar.xz manaplus-0abab7e8e92329b0cd8ec23807a1d3102d8ec136.zip |
Add support for draw outlined text.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h index 72e7c4dbb..8d6e486df 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -330,9 +330,16 @@ class Graphics : public gcn::SDLGraphics void setColor(const gcn::Color &color) { mColor = color; + mColor2 = color; mAlpha = (color.a != 255); } + void setColor2(const gcn::Color &color) + { mColor2 = color; } + + const gcn::Color &getColor2() const + { return mColor2; } + #ifdef DEBUG_DRAW_CALLS virtual unsigned int getDrawCalls() const { return 0; } @@ -388,6 +395,7 @@ class Graphics : public gcn::SDLGraphics std::string mName; int mStartFreeMem; bool mSync; + gcn::Color mColor2; }; extern Graphics *mainGraphics; |