summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h8
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;