summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp4
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;
}