[Scummvm-git-logs] scummvm master -> 3f4d9e4a16d70031ee3ca7902c7572ef1e7b3bfe
tag2015
noreply at scummvm.org
Wed Jan 31 21:49:45 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3f4d9e4a16 AGS: Fix luminance=0 being improperly set to 255
Commit: 3f4d9e4a16d70031ee3ca7902c7572ef1e7b3bfe
https://github.com/scummvm/scummvm/commit/3f4d9e4a16d70031ee3ca7902c7572ef1e7b3bfe
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2024-01-31T22:36:30+01:00
Commit Message:
AGS: Fix luminance=0 being improperly set to 255
The sanity check should only be applied for negative values,
otherwise a fully dark sprite ends up fully lit.
This is clearly noticeable in Unavowed during the
encounters and during the intro.
Fixes #14176
Changed paths:
engines/ags/engine/ac/draw.cpp
diff --git a/engines/ags/engine/ac/draw.cpp b/engines/ags/engine/ac/draw.cpp
index bfd6208ae24..e63cdb6b0ff 100644
--- a/engines/ags/engine/ac/draw.cpp
+++ b/engines/ags/engine/ac/draw.cpp
@@ -1417,7 +1417,7 @@ void tint_image(Bitmap *ds, Bitmap *srcimg, int red, int grn, int blu, int light
// Some games have incorrect data that result in a negative luminance.
// Do the same as the accelerated drivers that use 255 luminance for that case.
- if (luminance <= 0)
+ if (luminance < 0)
luminance = 255;
// For performance reasons, we have a separate blender for
More information about the Scummvm-git-logs
mailing list