diff options
author | Bertram <bertram@cegetel.net> | 2010-02-01 16:22:39 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-02-01 16:22:39 +0100 |
commit | 652ada50071c09e582a5100224f16b3a432eed1d (patch) | |
tree | 49dafc6b2134d6dea5366d8e1da2262ca085c7a8 /src/resources/image.cpp | |
parent | 7e2a54bedefc6b5e2b34c9dafccb8322f46266e7 (diff) | |
download | mana-652ada50071c09e582a5100224f16b3a432eed1d.tar.gz mana-652ada50071c09e582a5100224f16b3a432eed1d.tar.bz2 mana-652ada50071c09e582a5100224f16b3a432eed1d.tar.xz mana-652ada50071c09e582a5100224f16b3a432eed1d.zip |
Moved from SDLrescalefacility to SDL_gfx.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index f1ee3280..1ed3832a 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -22,11 +22,10 @@ #include "resources/image.h" #include "resources/dye.h" -#include "resources/sdlrescalefacility.h" - #include "log.h" #include <SDL_image.h> +#include <SDL_rotozoom.h> #ifdef USE_OPENGL bool Image::mUseOpenGL = false; @@ -354,12 +353,12 @@ Image* Image::SDLgetScaledImage(int width, int height) if (mSDLSurface) { - scaledSurface = _SDLzoomSurface(mSDLSurface, + scaledSurface = zoomSurface(mSDLSurface, (double) width / getWidth(), (double) height / getHeight(), 1); - // The load function takes of the SDL<->OpenGL implementation + // The load function takes care of the SDL<->OpenGL implementation // and about freeing the given SDL_surface*. if (scaledSurface) scaledImage = load(scaledSurface); |