summaryrefslogtreecommitdiff
path: root/src/sdl2graphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 20:00:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commitea2e8f7410f7fc993a2dc65f865f013a68fad1fc (patch)
treeb815fc43c271731f8bdd696dc762b953ff41c339 /src/sdl2graphics.cpp
parentd168ec33c553d1e331d1397d068fccdb70a594aa (diff)
downloadmanaverse-ea2e8f7410f7fc993a2dc65f865f013a68fad1fc.tar.gz
manaverse-ea2e8f7410f7fc993a2dc65f865f013a68fad1fc.tar.bz2
manaverse-ea2e8f7410f7fc993a2dc65f865f013a68fad1fc.tar.xz
manaverse-ea2e8f7410f7fc993a2dc65f865f013a68fad1fc.zip
fix outlined text draw in SDL2.
Diffstat (limited to 'src/sdl2graphics.cpp')
-rw-r--r--src/sdl2graphics.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sdl2graphics.cpp b/src/sdl2graphics.cpp
index 09b52470b..6d6a745ec 100644
--- a/src/sdl2graphics.cpp
+++ b/src/sdl2graphics.cpp
@@ -44,8 +44,9 @@
int MSDL_gfxBlitRGBA(SDL_Surface *src, SDL_Rect *srcrect,
SDL_Surface *dst, SDL_Rect *dstrect)
{
- return 0;
-// return SDL_gfxBlitRGBA(src, srcrect, dst, dstrect);
+ SDL_SetSurfaceBlendMode (src, SDL_BLENDMODE_BLEND);
+ SDL_BlitSurface(src, srcrect, dst, dstrect);
+ return 1;
}
#if SDL_BYTEORDER == SDL_LIL_ENDIAN