summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-21 21:29:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-21 21:29:51 +0300
commitf3a89322713a379678abc420d75230a9b17aa18f (patch)
tree1fa4318ba77eeef61272eb6cd982c7bf37b82800 /src/resources/sdlimagehelper.cpp
parent552867509d2a29d806d2ba416b24fbf7ac711803 (diff)
downloadmv-f3a89322713a379678abc420d75230a9b17aa18f.tar.gz
mv-f3a89322713a379678abc420d75230a9b17aa18f.tar.bz2
mv-f3a89322713a379678abc420d75230a9b17aa18f.tar.xz
mv-f3a89322713a379678abc420d75230a9b17aa18f.zip
fix code style.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r--src/resources/sdlimagehelper.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp
index 881368fd3..337d1cb53 100644
--- a/src/resources/sdlimagehelper.cpp
+++ b/src/resources/sdlimagehelper.cpp
@@ -137,10 +137,7 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage,
return nullptr;
Image *img;
-
bool hasAlpha = false;
- const bool converted = false;
-
const int sz = tmpImage->w * tmpImage->h;
// The alpha channel to be filled with alpha values
@@ -195,9 +192,6 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage,
return nullptr;
}
- if (converted)
- SDL_FreeSurface(tmpImage);
-
img = new Image(image, hasAlpha, alphaChannel);
img->mAlpha = alpha;
return img;