From b70bbf075a20524e6c1859fb18db0865c65182ca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Aug 2013 15:31:36 +0300 Subject: move surface combination into sdlimagehelper. --- src/resources/sdlimagehelper.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/resources/sdlimagehelper.cpp') diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 7a1953444..7a7de1906 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -33,6 +33,7 @@ #include "resources/image.h" +#include #include #include "debug.h" @@ -295,4 +296,13 @@ SDL_Surface *SDLImageHelper::create32BitSurface(int width, int height) const return SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 32, rmask, gmask, bmask, amask); } + +int SDLImageHelper::combineSurface(SDL_Surface *const src, + SDL_Rect *const srcrect, + SDL_Surface *const dst, + SDL_Rect *const dstrect) +{ + return SDL_gfxBlitRGBA(src, srcrect, dst, dstrect); +} + #endif // USE_SDL2 -- cgit v1.2.3-60-g2f50