diff options
Diffstat (limited to 'src/render/sdlgraphics.cpp')
-rw-r--r-- | src/render/sdlgraphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index 5680243ca..83bf989d2 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -170,8 +170,8 @@ bool SDLGraphics::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) }; |