From 582900e6c698823fc95bc6653707a328e96dd075 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Aug 2013 16:43:36 +0300 Subject: fix compilation with old gcc. --- src/test/testlauncher.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/test/testlauncher.cpp') 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 -#include - #ifdef WIN32 #include #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"); -- cgit v1.2.3-70-g09d2