diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-30 21:21:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-30 21:21:40 +0300 |
commit | 9aa2b0ffb97f8a1b5ae5201983318d03615c11e1 (patch) | |
tree | 21df896ff8139745775d41c1c8f82a4c6431698e /src/render/sdl2softwaregraphics.cpp | |
parent | 96f7714510cba0a84cd749869f236188473c4553 (diff) | |
download | plus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.gz plus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.bz2 plus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.tar.xz plus-9aa2b0ffb97f8a1b5ae5201983318d03615c11e1.zip |
add calcPatternInline into renders for internal usage.
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r-- | src/render/sdl2softwaregraphics.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
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 @@ -585,6 +585,14 @@ void SDL2SoftwareGraphics::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 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) return; @@ -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 |