summaryrefslogtreecommitdiff
path: root/src/surfacegraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/surfacegraphics.cpp')
-rw-r--r--src/surfacegraphics.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/surfacegraphics.cpp b/src/surfacegraphics.cpp
index 6dbb3ff70..0c9b6fa37 100644
--- a/src/surfacegraphics.cpp
+++ b/src/surfacegraphics.cpp
@@ -30,13 +30,10 @@
#include "logger.h"
#include "resources/imagehelper.h"
+#include "resources/surfaceimagehelper.h"
#include <guichan/sdl/sdlpixel.hpp>
-#ifndef USE_SDL2
-#include <SDL_gfxBlitFunc.h>
-#endif
-
#include "debug.h"
SurfaceGraphics::SurfaceGraphics() :
@@ -83,8 +80,8 @@ bool SurfaceGraphics::drawImage2(const Image *const image, int srcX, int srcY,
}
else
{
- return !(SDL_gfxBlitRGBA(image->mSDLSurface, &srcRect,
- mTarget, &dstRect) < 0);
+ return !(SurfaceImageHelper::combineSurface(
+ image->mSDLSurface, &srcRect, mTarget, &dstRect) < 0);
}
#endif
}