summaryrefslogtreecommitdiff
path: root/src/sdlgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 16:34:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:15 +0300
commit84189722a64c0794fbd918b4e6412908be2b7394 (patch)
tree7a9ed8e36889f2a6a5e49e98ae621fbd635bbb50 /src/sdlgraphics.h
parent31f6125fc7253e278bba5db46e08f370d92717c7 (diff)
downloadmanaplus-84189722a64c0794fbd918b4e6412908be2b7394.tar.gz
manaplus-84189722a64c0794fbd918b4e6412908be2b7394.tar.bz2
manaplus-84189722a64c0794fbd918b4e6412908be2b7394.tar.xz
manaplus-84189722a64c0794fbd918b4e6412908be2b7394.zip
separate SDLGraphics and SDLImageHelper to 1.2 and 2.
add missing sdlshared.h
Diffstat (limited to 'src/sdlgraphics.h')
-rw-r--r--src/sdlgraphics.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sdlgraphics.h b/src/sdlgraphics.h
index 18a03a46a..9f80f6acb 100644
--- a/src/sdlgraphics.h
+++ b/src/sdlgraphics.h
@@ -23,6 +23,11 @@
#ifndef SDLGRAPHICS_H
#define SDLGRAPHICS_H
+#ifdef USE_SDL2
+#include "sdl2graphics.h"
+
+#else
+
#include "graphics.h"
#include "localconsts.h"
@@ -162,4 +167,5 @@ class SDLGraphics : public Graphics
int mOldAlpha;
};
+#endif // USE_SDL2
#endif // SDLGRAPHICS_H