summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.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/resources/sdlimagehelper.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/resources/sdlimagehelper.h')
-rw-r--r--src/resources/sdlimagehelper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h
index 291345164..0aa3001b0 100644
--- a/src/resources/sdlimagehelper.h
+++ b/src/resources/sdlimagehelper.h
@@ -23,6 +23,11 @@
#ifndef RESOURCES_SDLIMAGEHELPER_H
#define RESOURCES_SDLIMAGEHELPER_H
+#ifdef USE_SDL2
+#include "sdl2imagehelper.h"
+
+#else
+
#include "localconsts.h"
#include "resources/imagehelper.h"
@@ -94,4 +99,5 @@ class SDLImageHelper final : public ImageHelper
static bool mEnableAlphaCache;
};
+#endif // USE_SDL2
#endif // RESOURCES_SDLIMAGEHELPER_H