From 7da9b342aa4e416cdcf29ed2ded276081fdcb975 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 30 Jun 2013 23:24:54 -0400 Subject: VIDEO: Fix Indeo3 luma scale Now black is really black --- video/codecs/indeo3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/codecs/indeo3.cpp') diff --git a/video/codecs/indeo3.cpp b/video/codecs/indeo3.cpp index 6fbefba9e3..28e1a9c620 100644 --- a/video/codecs/indeo3.cpp +++ b/video/codecs/indeo3.cpp @@ -288,14 +288,14 @@ const Graphics::Surface *Indeo3Decoder::decodeImage(Common::SeekableReadStream * if (scaleWidth == 1 && scaleHeight == 1) { // Shortcut: Don't need to scale so we can decode straight to the surface - YUVToRGBMan.convert410(_surface, Graphics::YUVToRGBManager::kScaleFull, srcY, tempU, tempV, + YUVToRGBMan.convert410(_surface, Graphics::YUVToRGBManager::kScaleITU, srcY, tempU, tempV, fWidth, fHeight, fWidth, chromaWidth + 1); } else { // Need to upscale, so decode to a temp surface first Graphics::Surface tempSurface; tempSurface.create(fWidth, fHeight, _surface->format); - YUVToRGBMan.convert410(&tempSurface, Graphics::YUVToRGBManager::kScaleFull, srcY, tempU, tempV, + YUVToRGBMan.convert410(&tempSurface, Graphics::YUVToRGBManager::kScaleITU, srcY, tempU, tempV, fWidth, fHeight, fWidth, chromaWidth + 1); // Upscale -- cgit v1.2.3