[Scummvm-git-logs] scummvm master -> 95fd7dcffca2f153f3edd2f613a8c670e0701385
bluegr
noreply at scummvm.org
Mon Jun 13 17:14:39 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:
95fd7dcffc GRAPHICS: Fix alpha blend on 16-bit targets treating the destination pixel as black
Commit: 95fd7dcffca2f153f3edd2f613a8c670e0701385
https://github.com/scummvm/scummvm/commit/95fd7dcffca2f153f3edd2f613a8c670e0701385
Author: elasota (ejlasota at gmail.com)
Date: 2022-06-13T20:14:36+03:00
Commit Message:
GRAPHICS: Fix alpha blend on 16-bit targets treating the destination pixel as black
Changed paths:
graphics/managed_surface.cpp
diff --git a/graphics/managed_surface.cpp b/graphics/managed_surface.cpp
index afba39d35b8..336ff63b488 100644
--- a/graphics/managed_surface.cpp
+++ b/graphics/managed_surface.cpp
@@ -388,6 +388,7 @@ void ManagedSurface::blitFromInner(const Surface &src, const Common::Rect &srcRe
// Partially transparent, so calculate new pixel colors
if (destFormat.bytesPerPixel == 2) {
uint32 destColor = *reinterpret_cast<uint16 *>(destVal);
+ destFormat.colorToARGB(destColor, aDest, rDest, gDest, bDest);
} else if (format.bytesPerPixel == 4) {
uint32 destColor = *reinterpret_cast<uint32 *>(destVal);
destFormat.colorToARGB(destColor, aDest, rDest, gDest, bDest);
More information about the Scummvm-git-logs
mailing list