summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/sdl2graphics.h1
-rw-r--r--src/render/sdl2softwaregraphics.h1
-rw-r--r--src/render/sdlgraphics.h1
-rw-r--r--src/render/softwaregraphicsdef.hpp2
4 files changed, 5 insertions, 0 deletions
diff --git a/src/render/sdl2graphics.h b/src/render/sdl2graphics.h
index 4b4d521ab..f0dc83329 100644
--- a/src/render/sdl2graphics.h
+++ b/src/render/sdl2graphics.h
@@ -104,6 +104,7 @@ class SDLGraphics final : public Graphics
RENDER_GRAPHICSDEF_HPP
#include "render/softwaregraphicsdef.hpp"
+ RENDER_SOFTWAREGRAPHICSDEF_HPP
protected:
uint32_t mRendererFlags;
diff --git a/src/render/sdl2softwaregraphics.h b/src/render/sdl2softwaregraphics.h
index 149c01d68..906ff106b 100644
--- a/src/render/sdl2softwaregraphics.h
+++ b/src/render/sdl2softwaregraphics.h
@@ -64,6 +64,7 @@ class SDL2SoftwareGraphics final : public Graphics
RENDER_GRAPHICSDEF_HPP
#include "render/softwaregraphicsdef.hpp"
+ RENDER_SOFTWAREGRAPHICSDEF_HPP
bool resizeScreen(const int width,
const int height) restrict2 override final;
diff --git a/src/render/sdlgraphics.h b/src/render/sdlgraphics.h
index 1a1d26aba..0f18c3c03 100644
--- a/src/render/sdlgraphics.h
+++ b/src/render/sdlgraphics.h
@@ -59,6 +59,7 @@ class SDLGraphics final : public Graphics
RENDER_GRAPHICSDEF_HPP
#include "render/softwaregraphicsdef.hpp"
+ RENDER_SOFTWAREGRAPHICSDEF_HPP
protected:
int SDL_FakeUpperBlit(const SDL_Surface *restrict const src,
diff --git a/src/render/softwaregraphicsdef.hpp b/src/render/softwaregraphicsdef.hpp
index 305b6ac40..c3eecf451 100644
--- a/src/render/softwaregraphicsdef.hpp
+++ b/src/render/softwaregraphicsdef.hpp
@@ -20,6 +20,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#define RENDER_SOFTWAREGRAPHICSDEF_HPP
+
public:
void calcTileSDL(ImageVertexes *restrict const vert,
int x, int y) const restrict2 override final;