[Scummvm-git-logs] scummvm master -> 21c78ccdc258767203cde43846fb57c07045ae39

bluegr noreply at scummvm.org
Sun Jan 15 12:24:41 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:
21c78ccdc2 SLUDGE: Fix transitionFader


Commit: 21c78ccdc258767203cde43846fb57c07045ae39
    https://github.com/scummvm/scummvm/commit/21c78ccdc258767203cde43846fb57c07045ae39
Author: Sebastian Krzyszkowiak (dos at dosowisko.net)
Date: 2023-01-15T14:24:38+02:00

Commit Message:
SLUDGE: Fix transitionFader

Instead of manipulating alpha with BLEND_MULTIPLY, simply blend
in normal mode with translucent black. This fixes transitions with
low brightness levels (close to 0), which previously would
effectively act as if the level was set to 255.

Changed paths:
    engines/sludge/transition.cpp


diff --git a/engines/sludge/transition.cpp b/engines/sludge/transition.cpp
index d3168f495b4..8b7fbbbe845 100644
--- a/engines/sludge/transition.cpp
+++ b/engines/sludge/transition.cpp
@@ -37,7 +37,7 @@ void GraphicsManager::setBrightnessLevel(int brightnessLevel) {
 unsigned lastFrom, lastTo;
 
 void GraphicsManager::transitionFader() {
-	blendColor(&_renderSurface, TS_ARGB(_brightnessLevel, 255, 255, 255), Graphics::BLEND_MULTIPLY);
+	blendColor(&_renderSurface, TS_ARGB(255 - _brightnessLevel, 0, 0, 0), Graphics::BLEND_NORMAL);
 }
 
 void GraphicsManager::transitionCrossFader() {




More information about the Scummvm-git-logs mailing list