diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-30 23:11:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-30 23:11:20 +0300 |
commit | b85fd67fb14f6a49c7e71f2265254150ba7a1240 (patch) | |
tree | ba4b7d4eb86b84753580885d067783d6bb4b1968 /src/render/sdl2softwaregraphics.cpp | |
parent | 080291d23a1a28cf7c5e3e01eb4ecb1637a1b42b (diff) | |
download | mv-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.gz mv-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.bz2 mv-b85fd67fb14f6a49c7e71f2265254150ba7a1240.tar.xz mv-b85fd67fb14f6a49c7e71f2265254150ba7a1240.zip |
add drawImageInline into renders for internal usage.
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r-- | src/render/sdl2softwaregraphics.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp index 03f6c2e41..daaa75387 100644 --- a/src/render/sdl2softwaregraphics.cpp +++ b/src/render/sdl2softwaregraphics.cpp @@ -111,6 +111,12 @@ bool SDL2SoftwareGraphics::drawRescaledImage(const Image *const image, bool SDL2SoftwareGraphics::drawImage2(const Image *const image, int dstX, int dstY) { + return drawImageInline(image, dstX, dstY); +} + +bool SDL2SoftwareGraphics::drawImageInline(const Image *const image, + int dstX, int dstY) +{ FUNC_BLOCK("Graphics::drawImage2", 1) // Check that preconditions for blitting are met. if (!mSurface || !image || !image->mSDLSurface) |