From 8d6aa77769d2d914fc05464435d6558b734bd4c1 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 4 Jul 2013 15:41:01 +0200 Subject: GUI: Cleanup EventRecorder::getSurface. Formerly the function created a SDL_Surface by hand. Instead now it uses SDL_CreateRGBSurface (which is used in the SDL backend anyway and yields the same results). This should fix PS3 port compilation. --- backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'backends') diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp index f66f43e8bf..1ebd019488 100644 --- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp +++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp @@ -878,12 +878,7 @@ void SurfaceSdlGraphicsManager::unloadGFXMode() { } if (_hwscreen) { - if (_displayDisabled) { - delete _hwscreen; - } else { - SDL_FreeSurface(_hwscreen); - } - + SDL_FreeSurface(_hwscreen); _hwscreen = NULL; } -- cgit v1.2.3