mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 21:21:05 +00:00
VIDEO: Fix Indeo3 luma scale
Now black is really black
This commit is contained in:
parent
318200cd86
commit
7da9b342aa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user