diff options
author | Simei Yin | 2017-08-02 09:15:40 +0200 |
---|---|---|
committer | Simei Yin | 2017-08-02 17:46:42 +0200 |
commit | c4fbb545a67635f58a7163bf01500f763e25df36 (patch) | |
tree | 4d298476ef4f356d3f38fa3bb6b994546f274d77 /engines | |
parent | 485a00b67577aedb314459487a4516a254bd53e0 (diff) | |
download | scummvm-rg350-c4fbb545a67635f58a7163bf01500f763e25df36.tar.gz scummvm-rg350-c4fbb545a67635f58a7163bf01500f763e25df36.tar.bz2 scummvm-rg350-c4fbb545a67635f58a7163bf01500f763e25df36.zip |
SLUDGE: Reset zBuffers when blank back drop
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/backdrop.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp index 9bc2a56be7..701f5dbaac 100644 --- a/engines/sludge/backdrop.cpp +++ b/engines/sludge/backdrop.cpp @@ -300,6 +300,11 @@ void GraphicsManager::blankScreen(int x1, int y1, int x2, int y2) { y2 = (int)_sceneHeight; _backdropSurface.fillRect(Common::Rect(x1, y1, x2, y2), _currentBlankColour); + + // reset zBuffer + if (_zBuffer->originalNum >= 0) { + setZBuffer(_zBuffer->originalNum); + } } void GraphicsManager::blankAllScreen() { @@ -345,6 +350,11 @@ void GraphicsManager::drawHorizontalLine(uint x1, uint y, uint x2) { void GraphicsManager::darkScreen() { Graphics::TransparentSurface tmp(_backdropSurface, false); tmp.blit(_backdropSurface, 0, 0, Graphics::FLIP_NONE, nullptr, TS_ARGB(0, 255 >> 1, 0, 0)); + + // reset zBuffer + if (_zBuffer->originalNum >= 0) { + setZBuffer(_zBuffer->originalNum); + } } void GraphicsManager::drawBackDrop() { |