summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 21:21:40 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 21:21:40 +0300
commit9aa2b0ffb97f8a1b5ae5201983318d03615c11e1 (patch)
tree21df896ff8139745775d41c1c8f82a4c6431698e /src/render/sdl2graphics.cpp
parent96f7714510cba0a84cd749869f236188473c4553 (diff)
downloadplus-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/sdl2graphics.cpp')
-rw-r--r--src/render/sdl2graphics.cpp14
1 files changed, 11 insertions, 3 deletions
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
@@ -345,6 +345,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->mTexture)
return;
@@ -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