summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.cpp')
-rw-r--r--src/graphics.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 40cda110a..dc1cc2b15 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -386,8 +386,6 @@ bool Graphics::drawRescaledImage(Image *const image, int srcX, int srcY,
Image *tmpImage = image->SDLgetScaledImage(desiredWidth, desiredHeight);
- bool returnValue = false;
-
if (!tmpImage)
return false;
if (!tmpImage->mSDLSurface)
@@ -408,7 +406,7 @@ bool Graphics::drawRescaledImage(Image *const image, int srcX, int srcY,
srcRect.w = static_cast<uint16_t>(width);
srcRect.h = static_cast<uint16_t>(height);
- returnValue = !(SDL_BlitSurface(tmpImage->mSDLSurface,
+ const bool returnValue = !(SDL_BlitSurface(tmpImage->mSDLSurface,
&srcRect, mTarget, &dstRect) < 0);
delete tmpImage;