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/gui/sdlfont.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/sdlfont.cpp') diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index e1a0cf832..653e7f69f 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -32,6 +32,7 @@ #include "resources/image.h" #include "resources/imagehelper.h" #include "resources/resourcemanager.h" +#include "resources/sdlimagehelper.h" #include @@ -195,17 +196,17 @@ void SDLTextChunk::generate(TTF_Font *const font, const float alpha) static_cast(surface->w), static_cast(surface->h) }; - MSDL_gfxBlitRGBA(surface2, nullptr, background, &rect); + SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); rect.x = -OUTLINE_SIZE; - MSDL_gfxBlitRGBA(surface2, nullptr, background, &rect); + SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); rect.x = 0; rect.y = -OUTLINE_SIZE; - MSDL_gfxBlitRGBA(surface2, nullptr, background, &rect); + SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); rect.y = OUTLINE_SIZE; - MSDL_gfxBlitRGBA(surface2, nullptr, background, &rect); + SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); rect.x = 0; rect.y = 0; - MSDL_gfxBlitRGBA(surface, nullptr, background, &rect); + SDLImageHelper::combineSurface(surface, nullptr, background, &rect); SDL_FreeSurface(surface); SDL_FreeSurface(surface2); surface = background; -- cgit v1.2.3-60-g2f50