From 28982aa9a5bd6389f30b62b3ad042897ffa7fd2a Mon Sep 17 00:00:00 2001 From: Simei Yin Date: Thu, 20 Jul 2017 19:09:11 +0200 Subject: SLUDGE: Remove useless zbuffer updating code --- engines/sludge/sprites.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'engines/sludge') diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp index 6134d1d0c9..b35bde4738 100644 --- a/engines/sludge/sprites.cpp +++ b/engines/sludge/sprites.cpp @@ -277,11 +277,6 @@ void GraphicsManager::pasteSpriteToBackDrop(int x1, int y1, Sprite &single, cons 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 @@ -293,11 +288,6 @@ void GraphicsManager::burnSpriteToBackDrop(int x1, int y1, Sprite &single, const 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 GraphicsManager::fontSprite(bool flip, int x, int y, Sprite &single, const SpritePalette &fontPal) { @@ -525,11 +515,6 @@ void GraphicsManager::fixScaleSprite(int x, int y, Sprite &single, const SpriteP // copy screen to backdrop _backdropSurface.copyFrom(_renderSurface); - - // reset zBuffer with the new backdrop - if (_zBuffer->numPanels) { - setZBuffer(_zBuffer->originalNum); - } } } // End of namespace Sludge -- cgit v1.2.3