From 5ce62dae5b3848833765a19296ffd9fd7e9721d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 2 Jul 2014 00:36:37 +0300 Subject: Fix compilation error with SDL2. --- src/render/surfacegraphics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/render') 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(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) { -- cgit v1.2.3-70-g09d2