diff options
author | Thanasis Antoniou | 2019-03-31 22:12:07 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-03-31 22:12:07 +0300 |
commit | 81a38bac793d2ca49d6953fbe1b69e73f2d8d16e (patch) | |
tree | c9dabc335fc7b04cc0307c8edb2cae4e87291caa /engines/bladerunner/ui | |
parent | 29762a67317692016368489e252b2b4924bb0749 (diff) | |
download | scummvm-rg350-81a38bac793d2ca49d6953fbe1b69e73f2d8d16e.tar.gz scummvm-rg350-81a38bac793d2ca49d6953fbe1b69e73f2d8d16e.tar.bz2 scummvm-rg350-81a38bac793d2ca49d6953fbe1b69e73f2d8d16e.zip |
BLADERUNNER: Remove blue tint from ESPER zoom-ins
This applies only to hotspot zoom-ins and zoom-outs
Last frame of zoomed in hotspot (video zoom) had a persistent blue tint. And zooming out from the hotspot also had a long lasting blue tint. These were removed.
Diffstat (limited to 'engines/bladerunner/ui')
-rw-r--r-- | engines/bladerunner/ui/esper.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/engines/bladerunner/ui/esper.cpp b/engines/bladerunner/ui/esper.cpp index 3ccede68fc..af6150f983 100644 --- a/engines/bladerunner/ui/esper.cpp +++ b/engines/bladerunner/ui/esper.cpp @@ -890,11 +890,12 @@ void ESPER::drawVideoZooming(Graphics::Surface &surface) { if (frame == _vqaPlayerPhoto->getFrameCount() - 1) { _vqaLastFrame = frame; setStatePhoto(kEsperPhotoStatePhotoSharpening); - } - - if (flash) { + } else if (flash) { + // TODO? Temporary workaround for very noticeable blue tint in the first frame during zoom-out: + // Don't flash for the last frame of the photo (which is the starting frame when zooming out) flashViewport(); } + copyImageBlur(&_surfaceViewport, Common::Rect(0, 0, 299, 263), &surface, _screen, _blur); drawGrid(surface); } @@ -913,7 +914,12 @@ void ESPER::drawVideoZoomOut(Graphics::Surface &surface) { } else if (nextFrame > 4) { nextFrame = 4; } - flash = true; + + if (_vqaLastFrame < _vqaPlayerPhoto->getFrameCount() - 1) { + // TODO? Temporary workaround for persistent blue tint in the last frame: + // Don't flash for the last frame of the photo (starting frame when zooming out) + flash = true; + } advanceFrame = true; _vqaLastFrame -= nextFrame; } |