summaryrefslogtreecommitdiff
path: root/src/sdlgraphics.h
diff options
context:
space:
mode:
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