diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-02 00:36:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-02 00:36:37 +0300 |
commit | 5ce62dae5b3848833765a19296ffd9fd7e9721d8 (patch) | |
tree | 3ccff3c6a119b275090f667def195fa6e229a4f5 /src/render | |
parent | 0799b9ee020ea7236fec04df15b31b88507f1443 (diff) | |
download | manaverse-5ce62dae5b3848833765a19296ffd9fd7e9721d8.tar.gz manaverse-5ce62dae5b3848833765a19296ffd9fd7e9721d8.tar.bz2 manaverse-5ce62dae5b3848833765a19296ffd9fd7e9721d8.tar.xz manaverse-5ce62dae5b3848833765a19296ffd9fd7e9721d8.zip |
Fix compilation error with SDL2.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/surfacegraphics.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/render/surfacegraphics.cpp b/src/render/surfacegraphics.cpp index f3e68ed25..31b9ddb7d 100644 --- a/src/render/surfacegraphics.cpp +++ b/src/render/surfacegraphics.cpp @@ -61,8 +61,7 @@ void SurfaceGraphics::drawImage(const Image *const image, srcRect.h = static_cast<uint16_t>(imageRect.h); #ifdef USE_SDL2 - return !(SDL_BlitSurface(image->mSDLSurface, &srcRect, - mTarget, &dstRect) < 0); + SDL_BlitSurface(image->mSDLSurface, &srcRect, mTarget, &dstRect); #else if (mBlitMode == BLIT_NORMAL) { |