diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 20:14:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:16 +0300 |
commit | 86a8a11c5fd21cdff2336b32a2cc30a8ff1d3f57 (patch) | |
tree | a08d9534e77d961c129852ea8fcf8b82455f5f90 /src/resources/image.cpp | |
parent | ea2e8f7410f7fc993a2dc65f865f013a68fad1fc (diff) | |
download | manaverse-86a8a11c5fd21cdff2336b32a2cc30a8ff1d3f57.tar.gz manaverse-86a8a11c5fd21cdff2336b32a2cc30a8ff1d3f57.tar.bz2 manaverse-86a8a11c5fd21cdff2336b32a2cc30a8ff1d3f57.tar.xz manaverse-86a8a11c5fd21cdff2336b32a2cc30a8ff1d3f57.zip |
remove unused sdl2gfx files.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index f6d80e61e..7f2fd6fbd 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -40,7 +40,9 @@ #include "resources/subimage.h" #include <SDL_image.h> +#ifndef USE_SDL2 #include <SDL_rotozoom.h> +#endif #include "debug.h" @@ -307,6 +309,7 @@ Image* Image::SDLgetScaledImage(const int width, const int height) const Image* scaledImage = nullptr; +#ifndef USE_SDL2 if (mSDLSurface) { SDL_Surface *const scaledSurface = zoomSurface(mSDLSurface, @@ -322,6 +325,7 @@ Image* Image::SDLgetScaledImage(const int width, const int height) const SDL_FreeSurface(scaledSurface); } } +#endif return scaledImage; } |