summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-02 00:36:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-02 00:36:37 +0300
commit5ce62dae5b3848833765a19296ffd9fd7e9721d8 (patch)
tree3ccff3c6a119b275090f667def195fa6e229a4f5
parent0799b9ee020ea7236fec04df15b31b88507f1443 (diff)
downloadmanaplus-5ce62dae5b3848833765a19296ffd9fd7e9721d8.tar.gz
manaplus-5ce62dae5b3848833765a19296ffd9fd7e9721d8.tar.bz2
manaplus-5ce62dae5b3848833765a19296ffd9fd7e9721d8.tar.xz
manaplus-5ce62dae5b3848833765a19296ffd9fd7e9721d8.zip
Fix compilation error with SDL2.
-rw-r--r--src/render/surfacegraphics.cpp3
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)
{