From 9aa2b0ffb97f8a1b5ae5201983318d03615c11e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Dec 2013 21:21:40 +0300 Subject: add calcPatternInline into renders for internal usage. --- src/render/sdl2graphics.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/render/sdl2graphics.cpp') diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index e1b8fecbc..81ace06d9 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -344,6 +344,14 @@ void SDLGraphics::calcPattern(ImageVertexes* const vert, const Image *const image, 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->mTexture) @@ -409,7 +417,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, @@ -725,7 +733,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, @@ -733,7 +741,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 -- cgit v1.2.3-60-g2f50