summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
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;