summaryrefslogtreecommitdiff
path: root/src/render/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-22 14:21:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-22 14:21:27 +0300
commit48646db55005a0da079bd2c945875dc8225e2f86 (patch)
tree4d7b18cb201682cbb32f1f1677a0935a8e7928a4 /src/render/graphics.h
parent9c12fcdfe590f34543fcecc2691b625c408f1746 (diff)
downloadmv-48646db55005a0da079bd2c945875dc8225e2f86.tar.gz
mv-48646db55005a0da079bd2c945875dc8225e2f86.tar.bz2
mv-48646db55005a0da079bd2c945875dc8225e2f86.tar.xz
mv-48646db55005a0da079bd2c945875dc8225e2f86.zip
Move color into gui dir.
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r--src/render/graphics.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h
index 53eb4af12..2356d2d31 100644
--- a/src/render/graphics.h
+++ b/src/render/graphics.h
@@ -70,10 +70,11 @@
#include "sdlshared.h"
+#include "gui/color.h"
+
#include "render/renderers.h"
#include "gui/base/cliprectangle.hpp"
-#include "gui/base/color.hpp"
#ifdef USE_SDL2
#include <SDL_render.h>
@@ -331,27 +332,27 @@ class Graphics
virtual void initArrays()
{ }
- virtual void setColor(const gcn::Color &color)
+ virtual void setColor(const Color &color)
{
mColor = color;
mColor2 = color;
mAlpha = (color.a != 255);
}
- void setColor2(const gcn::Color &color)
+ void setColor2(const Color &color)
{ mColor2 = color; }
- void setColorAll(const gcn::Color &color, const gcn::Color &color2)
+ void setColorAll(const Color &color, const Color &color2)
{
mColor = color;
mColor2 = color2;
mAlpha = (color.a != 255);
}
- const gcn::Color &getColor() const
+ const Color &getColor() const
{ return mColor; }
- const gcn::Color &getColor2() const
+ const Color &getColor2() const
{ return mColor2; }
#ifdef DEBUG_DRAW_CALLS
@@ -534,8 +535,8 @@ class Graphics
int mStartFreeMem;
bool mSync;
int mScale;
- gcn::Color mColor;
- gcn::Color mColor2;
+ Color mColor;
+ Color mColor2;
};
extern Graphics *mainGraphics;