summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 15:31:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitb70bbf075a20524e6c1859fb18db0865c65182ca (patch)
treed5c4974d004da809b2e723b2b883faabfb95ae2f /src/gui/sdlfont.cpp
parent8f670620dbf4c8092e9f834f9d65cbc607b81511 (diff)
downloadplus-b70bbf075a20524e6c1859fb18db0865c65182ca.tar.gz
plus-b70bbf075a20524e6c1859fb18db0865c65182ca.tar.bz2
plus-b70bbf075a20524e6c1859fb18db0865c65182ca.tar.xz
plus-b70bbf075a20524e6c1859fb18db0865c65182ca.zip
move surface combination into sdlimagehelper.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp11
1 files changed, 6 insertions, 5 deletions
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 <guichan/exception.hpp>
@@ -195,17 +196,17 @@ void SDLTextChunk::generate(TTF_Font *const font, const float alpha)
static_cast<Uint16>(surface->w),
static_cast<Uint16>(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;