diff options
Diffstat (limited to 'src/render/sdl2softwaregraphics.cpp')
-rw-r--r-- | src/render/sdl2softwaregraphics.cpp | 4 |
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) }; |