[Scummvm-git-logs] scummvm master -> 44e2abaed77139b5088968cd8f9bd1dc52088f4c
sev-
noreply at scummvm.org
Wed Jan 18 23:07:49 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:
44e2abaed7 SLUDGE: Use burnSurface in burnSpriteToBackDrop
Commit: 44e2abaed77139b5088968cd8f9bd1dc52088f4c
https://github.com/scummvm/scummvm/commit/44e2abaed77139b5088968cd8f9bd1dc52088f4c
Author: Sebastian Krzyszkowiak (dos at dosowisko.net)
Date: 2023-01-19T00:07:45+01:00
Commit Message:
SLUDGE: Use burnSurface in burnSpriteToBackDrop
Otherwise the only difference between it and pasteSpriteToBackDrop
is the different color used for blending.
burnString is supposed to transform brightness into alpha. This is
pre-rendered already at load time in burnSurface, so use that.
While at that, remove useLightTexture TODOs from above-mentioned
functions. The only thing the original interpreter does with
useLightTexture in those places is to make sure it's disabled.
Changed paths:
engines/sludge/sprites.cpp
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp
index 7a18e9600ec..a345e776d07 100644
--- a/engines/sludge/sprites.cpp
+++ b/engines/sludge/sprites.cpp
@@ -272,7 +272,6 @@ void GraphicsManager::pasteSpriteToBackDrop(int x1, int y1, Sprite &single, cons
_zBuffer->originalNum = num;
}
- //TODO: shader: useLightTexture
x1 -= single.xhot;
y1 -= single.yhot;
Graphics::TransparentSurface tmp(single.surface, false);
@@ -290,10 +289,9 @@ void GraphicsManager::burnSpriteToBackDrop(int x1, int y1, Sprite &single, const
_zBuffer->originalNum = num;
}
- //TODO: shader: useLightTexture
x1 -= single.xhot;
y1 -= single.yhot - 1;
- Graphics::TransparentSurface tmp(single.surface, false);
+ Graphics::TransparentSurface tmp(single.burnSurface, false);
tmp.blit(_backdropSurface, x1, y1, Graphics::FLIP_NONE, nullptr,
TS_RGB(_currentBurnR, _currentBurnG, _currentBurnB));
}
More information about the Scummvm-git-logs
mailing list