From ba0815355ef7be8e5f46720be5a6911e466e1568 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 25 Aug 2013 13:19:23 +0300 Subject: add SurfaceImageHelper for loading/processing surfaces for SDL2. For SDL1.2 used SDLImageHelper. --- src/gui/sdlfont.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/gui/sdlfont.cpp') diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index 653e7f69f..b6e0b8986 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -32,7 +32,7 @@ #include "resources/image.h" #include "resources/imagehelper.h" #include "resources/resourcemanager.h" -#include "resources/sdlimagehelper.h" +#include "resources/surfaceimagehelper.h" #include @@ -196,17 +196,22 @@ void SDLTextChunk::generate(TTF_Font *const font, const float alpha) static_cast(surface->w), static_cast(surface->h) }; - SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); + SurfaceImageHelper::combineSurface(surface2, nullptr, + background, &rect); rect.x = -OUTLINE_SIZE; - SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); + SurfaceImageHelper::combineSurface(surface2, nullptr, + background, &rect); rect.x = 0; rect.y = -OUTLINE_SIZE; - SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); + SurfaceImageHelper::combineSurface(surface2, nullptr, + background, &rect); rect.y = OUTLINE_SIZE; - SDLImageHelper::combineSurface(surface2, nullptr, background, &rect); + SurfaceImageHelper::combineSurface(surface2, nullptr, + background, &rect); rect.x = 0; rect.y = 0; - SDLImageHelper::combineSurface(surface, nullptr, background, &rect); + SurfaceImageHelper::combineSurface(surface, nullptr, + background, &rect); SDL_FreeSurface(surface); SDL_FreeSurface(surface2); surface = background; -- cgit v1.2.3-70-g09d2