[Scummvm-git-logs] scummvm master -> 3918c296595f13ffc10115a251a15d7859b458d4
digitall
noreply at scummvm.org
Fri Nov 18 13:06:37 UTC 2022
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:
3918c29659 ULTIMA: Fix Variable Shadowing GCC Compiler Warnings
Commit: 3918c296595f13ffc10115a251a15d7859b458d4
https://github.com/scummvm/scummvm/commit/3918c296595f13ffc10115a251a15d7859b458d4
Author: D G Turner (digitall at scummvm.org)
Date: 2022-11-18T13:05:50Z
Commit Message:
ULTIMA: Fix Variable Shadowing GCC Compiler Warnings
Changed paths:
engines/ultima/ultima8/graphics/soft_render_surface.cpp
diff --git a/engines/ultima/ultima8/graphics/soft_render_surface.cpp b/engines/ultima/ultima8/graphics/soft_render_surface.cpp
index 78f48136166..31789cece10 100644
--- a/engines/ultima/ultima8/graphics/soft_render_surface.cpp
+++ b/engines/ultima/ultima8/graphics/soft_render_surface.cpp
@@ -325,16 +325,16 @@ template<class uintX> void SoftRenderSurface<uintX>::FadedBlit(const Graphics::M
} else if (alpha) {
uintX *dest = reinterpret_cast<uintX *>(pixel);
- uint32 src = *texel;
+ uint32 Tsrc = *texel;
uint32 dr, dg, db;
UNPACK_RGB8(*dest, dr, dg, db);
- dr *= 256 - TEX32_A(src);
- dg *= 256 - TEX32_A(src);
- db *= 256 - TEX32_A(src);
- dr += TEX32_R(src) * ia + ((r * TEX32_A(src)) >> 8);
- dg += TEX32_G(src) * ia + ((g * TEX32_A(src)) >> 8);
- db += TEX32_B(src) * ia + ((b * TEX32_A(src)) >> 8);
+ dr *= 256 - TEX32_A(Tsrc);
+ dg *= 256 - TEX32_A(Tsrc);
+ db *= 256 - TEX32_A(Tsrc);
+ dr += TEX32_R(Tsrc) * ia + ((r * TEX32_A(Tsrc)) >> 8);
+ dg += TEX32_G(Tsrc) * ia + ((g * TEX32_A(Tsrc)) >> 8);
+ db += TEX32_B(Tsrc) * ia + ((b * TEX32_A(Tsrc)) >> 8);
*dest = PACK_RGB16(dr, dg, db);
}
@@ -460,16 +460,16 @@ template<class uintX> void SoftRenderSurface<uintX>::MaskedBlit(const Graphics::
)
);
} else if (alpha) {
- uint32 src = *texel;
+ uint32 Tsrc = *texel;
uint32 dr, dg, db;
UNPACK_RGB8(*dest, dr, dg, db);
- dr *= 256 - TEX32_A(src);
- dg *= 256 - TEX32_A(src);
- db *= 256 - TEX32_A(src);
- dr += TEX32_R(src) * ia + ((r * TEX32_A(src)) >> 8);
- dg += TEX32_G(src) * ia + ((g * TEX32_A(src)) >> 8);
- db += TEX32_B(src) * ia + ((b * TEX32_A(src)) >> 8);
+ dr *= 256 - TEX32_A(Tsrc);
+ dg *= 256 - TEX32_A(Tsrc);
+ db *= 256 - TEX32_A(Tsrc);
+ dr += TEX32_R(Tsrc) * ia + ((r * TEX32_A(Tsrc)) >> 8);
+ dg += TEX32_G(Tsrc) * ia + ((g * TEX32_A(Tsrc)) >> 8);
+ db += TEX32_B(Tsrc) * ia + ((b * TEX32_A(Tsrc)) >> 8);
*dest = PACK_RGB16(dr, dg, db);
}
More information about the Scummvm-git-logs
mailing list