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/sdl2softwaregraphics.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/render/sdl2softwaregraphics.cpp') diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp index 04be6b4fd..cf69312c8 100644 --- a/src/render/sdl2softwaregraphics.cpp +++ b/src/render/sdl2softwaregraphics.cpp @@ -584,6 +584,14 @@ void SDL2SoftwareGraphics::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 SDL2SoftwareGraphics::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 || !mSurface || !image || !image->mSDLSurface) @@ -1488,7 +1496,7 @@ void SDL2SoftwareGraphics::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 SDL2SoftwareGraphics::calcImageRect(ImageVertexes *const vert, @@ -1496,7 +1504,7 @@ void SDL2SoftwareGraphics::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