diff options
author | richiesams | 2013-09-03 00:39:39 -0500 |
---|---|---|
committer | richiesams | 2013-09-03 00:39:39 -0500 |
commit | b3a32746162399d065efc33b71770ddb6e3eeab0 (patch) | |
tree | 7bb9a5c5f883b1a3fe0320d5db6c9ff87a52a3f2 | |
parent | efb0495758b8f5ee5f59d148a15cf03265cd6c2d (diff) | |
download | scummvm-rg350-b3a32746162399d065efc33b71770ddb6e3eeab0.tar.gz scummvm-rg350-b3a32746162399d065efc33b71770ddb6e3eeab0.tar.bz2 scummvm-rg350-b3a32746162399d065efc33b71770ddb6e3eeab0.zip |
ZVISION: Remove unnecessary file.open()
It's done inside readImageToSurface() and it no longer needs
to be on the heap
-rw-r--r-- | engines/zvision/render_manager.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index 463faefdeb..837e3880c7 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -282,13 +282,6 @@ RenderTable *RenderManager::getRenderTable() { } void RenderManager::setBackgroundImage(const Common::String &fileName) { - Common::File *file = new Common::File; - - if (!file->open(fileName)) { - warning("Could not open file %s", fileName.c_str()); - return; - } - readImageToSurface(fileName, _currentBackground); moveBackground(0); |