From 86a8a11c5fd21cdff2336b32a2cc30a8ff1d3f57 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 20:14:42 +0300 Subject: remove unused sdl2gfx files. --- src/resources/image.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/image.cpp') 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 +#ifndef USE_SDL2 #include +#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; } -- cgit v1.2.3-60-g2f50