summaryrefslogtreecommitdiff
path: root/src/render/sdl2softwaregraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-30 15:36:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-30 15:36:37 +0300
commit90d0f4bb37f63199a50d712d01b73a0ec66af1c5 (patch)
treec54a02fff07526d1aea66b07adcc1a6d93e05bda /src/render/sdl2softwaregraphics.cpp
parent6872cb2a97571258e5b4ef863eccd8ceec00f58a (diff)
downloadmanaplus-90d0f4bb37f63199a50d712d01b73a0ec66af1c5.tar.gz
manaplus-90d0f4bb37f63199a50d712d01b73a0ec66af1c5.tar.bz2
manaplus-90d0f4bb37f63199a50d712d01b73a0ec66af1c5.tar.xz
manaplus-90d0f4bb37f63199a50d712d01b73a0ec66af1c5.zip
Fix images drawing in software renderers.
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r--src/render/sdl2softwaregraphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp
index 7210e8bbf..c72dd5a7f 100644
--- a/src/render/sdl2softwaregraphics.cpp
+++ b/src/render/sdl2softwaregraphics.cpp
@@ -177,8 +177,8 @@ bool SDL2SoftwareGraphics::drawImage2(const Image *const image,
{
SDL_Rect srcRect =
{
- static_cast<int16_t>(0),
- static_cast<int16_t>(0),
+ static_cast<int16_t>(srcX),
+ static_cast<int16_t>(srcY),
static_cast<uint16_t>(w),
static_cast<uint16_t>(h)
};