diff options
Diffstat (limited to 'src/sdlgraphics.cpp')
-rw-r--r-- | src/sdlgraphics.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sdlgraphics.cpp b/src/sdlgraphics.cpp index 4d7e49afa..fc9f949a1 100644 --- a/src/sdlgraphics.cpp +++ b/src/sdlgraphics.cpp @@ -58,7 +58,8 @@ SDLGraphics::~SDLGraphics() { } -bool SDLGraphics::drawRescaledImage(const Image *const image, int srcX, int srcY, +bool SDLGraphics::drawRescaledImage(const Image *const image, + int srcX, int srcY, int dstX, int dstY, const int width, const int height, const int desiredWidth, @@ -626,7 +627,7 @@ int SDLGraphics::SDL_FakeUpperBlit(const SDL_Surface *const src, if (!src || !dst) return -1; - if (!srcrect ||!dstrect) + if (!srcrect || !dstrect) return -1; srcx = srcrect->x; |