summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-25 13:19:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-25 14:03:36 +0300
commitba0815355ef7be8e5f46720be5a6911e466e1568 (patch)
treed464944cc5796535507461fa26b49f636e88a9bf /src/gui/sdlfont.cpp
parent948d940d46240ff518ec9b1037503bebdb47196a (diff)
downloadplus-ba0815355ef7be8e5f46720be5a6911e466e1568.tar.gz
plus-ba0815355ef7be8e5f46720be5a6911e466e1568.tar.bz2
plus-ba0815355ef7be8e5f46720be5a6911e466e1568.tar.xz
plus-ba0815355ef7be8e5f46720be5a6911e466e1568.zip
add SurfaceImageHelper for loading/processing surfaces for SDL2.
For SDL1.2 used SDLImageHelper.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp17
1 files changed, 11 insertions, 6 deletions
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 <guichan/exception.hpp>
@@ -196,17 +196,22 @@ void SDLTextChunk::generate(TTF_Font *const font, const float alpha)
static_cast<Uint16>(surface->w),
static_cast<Uint16>(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;