summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
commitd1bb1b375d657f0821ccfebf18fa1c3873314690 (patch)
treeeb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/graphics.cpp
parent9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff)
downloadmanaplus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz
manaplus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2
manaplus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz
manaplus-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip
Fix useless variables initialisations.
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;