diff options
author | Johannes Schickel | 2013-07-04 15:41:01 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-07-04 15:43:17 +0200 |
commit | 8d6aa77769d2d914fc05464435d6558b734bd4c1 (patch) | |
tree | 1dc103bcd526f4b7c20306daecf2d8f51ec2a434 /backends | |
parent | afdb007e2e158efa4a9a1098f80ff224d0038729 (diff) | |
download | scummvm-rg350-8d6aa77769d2d914fc05464435d6558b734bd4c1.tar.gz scummvm-rg350-8d6aa77769d2d914fc05464435d6558b734bd4c1.tar.bz2 scummvm-rg350-8d6aa77769d2d914fc05464435d6558b734bd4c1.zip |
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.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/surfacesdl/surfacesdl-graphics.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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; } |