[Scummvm-git-logs] scummvm master -> 33675c0b2ec0e315174d3bb3d37c51e8551c2626
ccawley2011
noreply at scummvm.org
Wed Jan 11 12:55:58 UTC 2023
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:
33675c0b2e GRAPHICS: Fix darkened fills on overlays with alpha bits but no blending
Commit: 33675c0b2ec0e315174d3bb3d37c51e8551c2626
https://github.com/scummvm/scummvm/commit/33675c0b2ec0e315174d3bb3d37c51e8551c2626
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2023-01-11T12:55:52Z
Commit Message:
GRAPHICS: Fix darkened fills on overlays with alpha bits but no blending
Changed paths:
graphics/VectorRendererSpec.cpp
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp
index c1e3cc5981d..8281eaa998d 100644
--- a/graphics/VectorRendererSpec.cpp
+++ b/graphics/VectorRendererSpec.cpp
@@ -939,6 +939,8 @@ darkenFill(PixelType *ptr, PixelType *end) {
if (!g_system->hasFeature(OSystem::kFeatureOverlaySupportsAlpha)) {
// !kFeatureOverlaySupportsAlpha (but might have alpha bits)
+ mask |= _alphaMask;
+
while (ptr != end) {
*ptr = ((*ptr & ~mask) >> 2) | _alphaMask;
++ptr;
@@ -967,6 +969,8 @@ darkenFillClip(PixelType *ptr, PixelType *end, int x, int y) {
if (!g_system->hasFeature(OSystem::kFeatureOverlaySupportsAlpha)) {
// !kFeatureOverlaySupportsAlpha (but might have alpha bits)
+ mask |= _alphaMask;
+
while (ptr != end) {
if (IS_IN_CLIP(x, y)) *ptr = ((*ptr & ~mask) >> 2) | _alphaMask;
++ptr;
More information about the Scummvm-git-logs
mailing list