summaryrefslogtreecommitdiff
path: root/src/render/sdlgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 23:11:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 23:11:20 +0300
commitb85fd67fb14f6a49c7e71f2265254150ba7a1240 (patch)
treeba4b7d4eb86b84753580885d067783d6bb4b1968 /src/render/sdlgraphics.cpp
parent080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b (diff)
downloadmanaverse-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.gz
manaverse-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.bz2
manaverse-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.xz
manaverse-b85fd67fb14f6a49c7e71f2265254150ba7a1240.zip
add drawImageInline into renders for internal usage.
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r--src/render/sdlgraphics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp
index 7bd6b82e0..37d26689e 100644
--- a/src/render/sdlgraphics.cpp
+++ b/src/render/sdlgraphics.cpp
@@ -104,6 +104,12 @@ bool SDLGraphics::drawRescaledImage(const Image *const image,
bool SDLGraphics::drawImage2(const Image *const image,
int dstX, int dstY)
{
+ drawImageInline(image, dstX, dstY);
+}
+
+bool SDLGraphics::drawImageInline(const Image *const image,
+ int dstX, int dstY)
+{
FUNC_BLOCK("Graphics::drawImage2", 1)
// Check that preconditions for blitting are met.
if (!mWindow || !image || !image->mSDLSurface)