diff options
author | Simei Yin | 2017-07-20 19:09:11 +0200 |
---|---|---|
committer | Simei Yin | 2017-07-20 19:10:01 +0200 |
commit | 28982aa9a5bd6389f30b62b3ad042897ffa7fd2a (patch) | |
tree | eee915e89c19eee3422906fab7b24e759dfcdb70 /engines/sludge | |
parent | 0fb4a1ddd228cdcedb1313aa8df6ac2b9ba97530 (diff) | |
download | scummvm-rg350-28982aa9a5bd6389f30b62b3ad042897ffa7fd2a.tar.gz scummvm-rg350-28982aa9a5bd6389f30b62b3ad042897ffa7fd2a.tar.bz2 scummvm-rg350-28982aa9a5bd6389f30b62b3ad042897ffa7fd2a.zip |
SLUDGE: Remove useless zbuffer updating code
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/sprites.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
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 |