aboutsummaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorColin Snover2017-08-23 19:59:17 -0500
committerColin Snover2017-08-24 20:34:19 -0500
commit7dd2c0342d9a650d6bdc4864c702921d3b3fb070 (patch)
tree0b7843a27be0ea5dd6497b933811036ce28184ea /image
parent085ec30b49fedb032bd9b09cb5dc1729ffc54c0f (diff)
downloadscummvm-rg350-7dd2c0342d9a650d6bdc4864c702921d3b3fb070.tar.gz
scummvm-rg350-7dd2c0342d9a650d6bdc4864c702921d3b3fb070.tar.bz2
scummvm-rg350-7dd2c0342d9a650d6bdc4864c702921d3b3fb070.zip
IMAGE: Remove unnecessary temporary surface in Indeo4/5
Diffstat (limited to 'image')
-rw-r--r--image/codecs/indeo/indeo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/image/codecs/indeo/indeo.cpp b/image/codecs/indeo/indeo.cpp
index 6b6e3557fe..f8cd8a1c64 100644
--- a/image/codecs/indeo/indeo.cpp
+++ b/image/codecs/indeo/indeo.cpp
@@ -578,8 +578,7 @@ int IndeoDecoderBase::decodeIndeoFrame() {
outputPlane(&_ctx._planes[1], frame->_data[2], frame->_linesize[2]);
// Merge the planes into the final surface
- Graphics::Surface s = _surface->getSubArea(Common::Rect(0, 0, _surface->w, _surface->h));
- YUVToRGBMan.convert410(&s, Graphics::YUVToRGBManager::kScaleITU,
+ YUVToRGBMan.convert410(_surface, Graphics::YUVToRGBManager::kScaleITU,
frame->_data[0], frame->_data[1], frame->_data[2], frame->_width, frame->_height,
frame->_width, frame->_width);