SLUDGE: Remove useless zbuffer updating code

This commit is contained in:
Simei Yin 2017-07-20 19:09:11 +02:00
parent 0fb4a1ddd2
commit 28982aa9a5

View File

@ -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