aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorColin Snover2017-02-25 11:32:24 -0600
committerColin Snover2017-04-22 19:38:13 -0500
commit78fd8d39c500cb85fdf5766ce1d836816264fad6 (patch)
tree394513110ace6baccf859aab8cacd9f77845f533 /engines/sci/graphics
parent16fe6d3cb1835bd0cd852ad78f4b00c54e3fdcd1 (diff)
downloadscummvm-rg350-78fd8d39c500cb85fdf5766ce1d836816264fad6.tar.gz
scummvm-rg350-78fd8d39c500cb85fdf5766ce1d836816264fad6.tar.bz2
scummvm-rg350-78fd8d39c500cb85fdf5766ce1d836816264fad6.zip
SCI32: Disable brightness boost when black-lined video is disabled
The boost is intended to compensate for the darkness caused by the black lines, so should not be applied when there are no black lines. This fixes too-bright videos in at least LSL7.
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/video32.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/graphics/video32.cpp b/engines/sci/graphics/video32.cpp
index 0e8ac8af41..1759e8e722 100644
--- a/engines/sci/graphics/video32.cpp
+++ b/engines/sci/graphics/video32.cpp
@@ -590,7 +590,10 @@ void VMDPlayer::init(const int16 x, const int16 y, const PlayFlags flags, const
_y = y;
_doublePixels = flags & kPlayFlagDoublePixels;
_blackLines = ConfMan.getBool("enable_black_lined_video") && (flags & kPlayFlagBlackLines);
- _boostPercent = 100 + (flags & kPlayFlagBoost ? boostPercent : 0);
+ // If ScummVM has been configured to disable black lines on video playback,
+ // the boosts need to be ignored too or else the brightness of the video
+ // will be too high
+ _boostPercent = 100 + (_blackLines && (flags & kPlayFlagBoost) ? boostPercent : 0);
_boostStartColor = CLIP<int16>(boostStartColor, 0, 255);
_boostEndColor = CLIP<int16>(boostEndColor, 0, 255);
_leaveScreenBlack = flags & kPlayFlagLeaveScreenBlack;