diff options
author | Simei Yin | 2017-07-17 10:27:00 +0200 |
---|---|---|
committer | Simei Yin | 2017-07-18 19:05:04 +0200 |
commit | 4c4690a1e35eda0041a4ee81ab6f89c56ff96981 (patch) | |
tree | 181f26d147122aa3ed97eb6e9a9310498f7856c9 /engines | |
parent | 7a469a859aa058f24bc15d709a6fe5c1e3782988 (diff) | |
download | scummvm-rg350-4c4690a1e35eda0041a4ee81ab6f89c56ff96981.tar.gz scummvm-rg350-4c4690a1e35eda0041a4ee81ab6f89c56ff96981.tar.bz2 scummvm-rg350-4c4690a1e35eda0041a4ee81ab6f89c56ff96981.zip |
SLUDGE: Update ZBuffer with changed backdrop
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/sprites.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index c0fe9e3a54..39bb65211d 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -305,6 +305,11 @@ void pasteSpriteToBackDrop(int x1, int y1, sprite &single, const spritePalette & Graphics::TransparentSurface tmp(single.surface, false); tmp.blit(backdropSurface, x1, y1, Graphics::FLIP_NONE, nullptr, TS_RGB(fontPal.originalRed, fontPal.originalGreen, fontPal.originalBlue)); + + // reset zBuffer with the new backdrop + if (zBuffer.numPanels) { + setZBuffer(zBuffer.originalNum); + } } // burnSpriteToBackDrop adds text in the colour specified by setBurnColour @@ -316,6 +321,11 @@ void burnSpriteToBackDrop(int x1, int y1, sprite &single, const spritePalette &f Graphics::TransparentSurface tmp(single.surface, false); tmp.blit(backdropSurface, x1, y1, Graphics::FLIP_NONE, nullptr, TS_RGB(currentBurnR, currentBurnG, currentBurnB)); + + // reset zBuffer with the new backdrop + if (zBuffer.numPanels) { + setZBuffer(zBuffer.originalNum); + } } void fontSprite(bool flip, int x, int y, sprite &single, const spritePalette &fontPal) { |