[Scummvm-git-logs] scummvm master -> 3012da2a6d987ae03be68fc6f15e6b8440fd2604

bluegr noreply at scummvm.org
Sun Jun 15 20:24:00 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
3012da2a6d WINTERMUTE: Set pixels matching the colour key to black in the the 2D renderer


Commit: 3012da2a6d987ae03be68fc6f15e6b8440fd2604
    https://github.com/scummvm/scummvm/commit/3012da2a6d987ae03be68fc6f15e6b8440fd2604
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-06-15T23:23:57+03:00

Commit Message:
WINTERMUTE: Set pixels matching the colour key to black in the the 2D renderer

Changed paths:
    engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp


diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
index 3096343d9d2..ac76d5a7c31 100644
--- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
@@ -154,7 +154,9 @@ bool BaseSurfaceOSystem::finishLoad() {
 	}
 
 	if (needsColorKey) {
-		_surface->applyColorKey(_ckRed, _ckGreen, _ckBlue, replaceAlpha);
+		// We set the pixel color to transparent black,
+		// like D3DX, if it matches the color key.
+		_surface->applyColorKey(_ckRed, _ckGreen, _ckBlue, replaceAlpha, 0, 0, 0);
 	}
 
 	_alphaType = _surface->detectAlpha();




More information about the Scummvm-git-logs mailing list