summaryrefslogtreecommitdiff
path: root/src/render/sdlgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r--src/render/sdlgraphics.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp
index ed2f08c4d..9acee8bdf 100644
--- a/src/render/sdlgraphics.cpp
+++ b/src/render/sdlgraphics.cpp
@@ -578,6 +578,14 @@ void SDLGraphics::calcPattern(ImageVertexes* const vert,
const int x, const int y,
const int w, const int h) const
{
+ calcPatternInline(vert, image, x, y, w, h);
+}
+
+void SDLGraphics::calcPatternInline(ImageVertexes* const vert,
+ const Image *const image,
+ const int x, const int y,
+ const int w, const int h) const
+{
// Check that preconditions for blitting are met.
if (!vert || !mWindow || !image || !image->mSDLSurface)
return;
@@ -646,7 +654,7 @@ void SDLGraphics::calcPattern(ImageCollection* const vertCol,
vert = vertCol->currentVert;
}
- calcPattern(vert, image, x, y, w, h);
+ calcPatternInline(vert, image, x, y, w, h);
}
void SDLGraphics::calcTileVertexes(ImageVertexes *const vert,
@@ -1467,7 +1475,7 @@ void SDLGraphics::drawImageRect(const int x, const int y,
const int w, const int h,
const ImageRect &imgRect)
{
- #include "render/openglgraphics_drawImageRect.hpp"
+ #include "render/graphics_drawImageRect.hpp"
}
void SDLGraphics::calcImageRect(ImageVertexes *const vert,
@@ -1475,7 +1483,7 @@ void SDLGraphics::calcImageRect(ImageVertexes *const vert,
const int w, const int h,
const ImageRect &imgRect)
{
- #include "render/openglgraphics_calcImageRect.hpp"
+ #include "render/graphics_calcImageRect.hpp"
}
#endif // USE_SDL2