[Scummvm-git-logs] scummvm master -> 9785388f8e7c6f08b2621780a3bb82a1a28ac540
bluegr
noreply at scummvm.org
Sat Oct 14 07:56:36 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:
9785388f8e GRAPHICS: Fix an incorrect bpp in SurfaceSdl when applying cursor mask
Commit: 9785388f8e7c6f08b2621780a3bb82a1a28ac540
https://github.com/scummvm/scummvm/commit/9785388f8e7c6f08b2621780a3bb82a1a28ac540
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2023-10-14T10:56:31+03:00
Commit Message:
GRAPHICS: Fix an incorrect bpp in SurfaceSdl when applying cursor mask
Source bpp is wrongly taken instead of destination bpp, the issue is visible only if the source bpp is != 4.
Changed paths:
backends/graphics/surfacesdl/surfacesdl-graphics.cpp
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index a18ef063519..07560f0d5ab 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -2050,7 +2050,7 @@ void SurfaceSdlGraphicsManager::setMouseCursor(const void *buf, uint w, uint h,
if (format->aBits() > 0)
formatWithAlpha = *format;
- const uint outBPP = format->bytesPerPixel;
+ const uint outBPP = formatWithAlpha.bytesPerPixel;
Common::Array<byte> maskedImage;
maskedImage.resize(numPixels * outBPP);
More information about the Scummvm-git-logs
mailing list