diff options
author | yinsimei | 2017-06-21 16:24:55 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | 52b627bae6f13586f2767d444a3946807b627973 (patch) | |
tree | c470359be422ebb7d30438f9299a173c2e128a40 /engines/sludge/zbuffer.cpp | |
parent | f89f1aad4c7ba65e6616eab4a6191e200334dbfc (diff) | |
download | scummvm-rg350-52b627bae6f13586f2767d444a3946807b627973.tar.gz scummvm-rg350-52b627bae6f13586f2767d444a3946807b627973.tar.bz2 scummvm-rg350-52b627bae6f13586f2767d444a3946807b627973.zip |
SLUDGE: use Common::List to reproduce layer effects
Diffstat (limited to 'engines/sludge/zbuffer.cpp')
-rw-r--r-- | engines/sludge/zbuffer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/sludge/zbuffer.cpp b/engines/sludge/zbuffer.cpp index cc3bb8d67f..76fa515de2 100644 --- a/engines/sludge/zbuffer.cpp +++ b/engines/sludge/zbuffer.cpp @@ -31,6 +31,7 @@ #include "sludge/newfatal.h" #include "sludge/graphics.h" #include "sludge/sludge.h" +#include "sludge/sprites.h" namespace Sludge { @@ -170,10 +171,7 @@ void drawZBuffer(int x, int y, bool upsidedown) { if (!zBuffer.numPanels || !zBuffer.sprites) return; - for (int i = 0; i < zBuffer.numPanels; ++i) { - Graphics::TransparentSurface tmp(zBuffer.sprites[i], false); - tmp.blit(renderSurface, 0, 0, (upsidedown ? Graphics::FLIP_V : Graphics::FLIP_NONE)); - } + resetSpriteLayers(&zBuffer, x, y, upsidedown); #if 0 glEnable (GL_DEPTH_TEST); |