diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-27 20:22:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-27 21:52:59 +0300 |
commit | 53ae7cee19c269a6ebf53e468825305d448ff006 (patch) | |
tree | fb43a66adaacc3bb2e42a8d346b5d267f2b807c8 /src/sdlgraphics.cpp | |
parent | eb9841897bbe93da6aa4ca2537a3e22b3a868d98 (diff) | |
download | mv-53ae7cee19c269a6ebf53e468825305d448ff006.tar.gz mv-53ae7cee19c269a6ebf53e468825305d448ff006.tar.bz2 mv-53ae7cee19c269a6ebf53e468825305d448ff006.tar.xz mv-53ae7cee19c269a6ebf53e468825305d448ff006.zip |
fix code style.
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; |