summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-19 16:43:36 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-19 18:34:56 +0300
commit582900e6c698823fc95bc6653707a328e96dd075 (patch)
tree1e3bca15f9b14045e83ac5a7f85ca98fa6f7933a /src/test
parentf93aa1c4a5dc334a437ad8bc6c7ffa7a5417d19c (diff)
downloadmanaverse-582900e6c698823fc95bc6653707a328e96dd075.tar.gz
manaverse-582900e6c698823fc95bc6653707a328e96dd075.tar.bz2
manaverse-582900e6c698823fc95bc6653707a328e96dd075.tar.xz
manaverse-582900e6c698823fc95bc6653707a328e96dd075.zip
fix compilation with old gcc.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testlauncher.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index 12f58dcd8..b479ba9a3 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -24,8 +24,8 @@
#include "client.h"
#include "configuration.h"
-#include "graphics.h"
#include "graphicsmanager.h"
+#include "sdlgraphics.h"
#include "soundmanager.h"
#include "gui/theme.h"
@@ -42,8 +42,6 @@
#include <unistd.h>
-#include <SDL_gfxBlitFunc.h>
-
#ifdef WIN32
#include <windows.h>
#define sleep(seconds) Sleep((seconds) * 1000)
@@ -251,7 +249,8 @@ int TestLauncher::testDye()
rect.w, rect.h);
if (surface)
{
- SDL_gfxBlitRGBA(image->mSDLSurface, nullptr, surface, nullptr);
+ MSDL_gfxBlitRGBA(image->mSDLSurface, nullptr,
+ surface, nullptr);
ImageWriter::writePNG(image->mSDLSurface,
Client::getTempDirectory() + "/testimage1.png");
ImageWriter::writePNG(surface,
@@ -269,7 +268,7 @@ int TestLauncher::testDye()
rect.w, rect.h);
if (surface)
{
- SDL_gfxBlitRGBA(image->mSDLSurface, nullptr,
+ MSDL_gfxBlitRGBA(image->mSDLSurface, nullptr,
surface, nullptr);
ImageWriter::writePNG(image->mSDLSurface,
Client::getTempDirectory() + "/testimage3.png");