diff options
author | Travis Howell | 2005-04-02 14:24:43 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-02 14:24:43 +0000 |
commit | b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c (patch) | |
tree | 11b8365f76d0173232f63e5fb47c1e156b16fbfa /scumm/sprite_he.cpp | |
parent | eb4dce05ee864dbd2bacc3be85689532bf9c7761 (diff) | |
download | scummvm-rg350-b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c.tar.gz scummvm-rg350-b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c.tar.bz2 scummvm-rg350-b5f281e9d8b0f2d75c03b40c2f04e1df1c0cc94c.zip |
Cleanup
svn-id: r17333
Diffstat (limited to 'scumm/sprite_he.cpp')
-rw-r--r-- | scumm/sprite_he.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index 451e967920..47dc9bb1de 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -26,6 +26,7 @@ #include "scumm/resource.h" #include "scumm/scumm.h" #include "scumm/sprite_he.h" +#include "scumm/usage_bits.h" #include "scumm/wiz_he.h" namespace Scumm { @@ -1061,7 +1062,7 @@ void ScummEngine_v90he::spritesBlitToScreen() { spi->flags &= ~kSFChanged; if (spi->bbox.left <= spi->bbox.right && spi->bbox.top <= spi->bbox.bottom) { if (spi->flags & kSFBlitDirectly) { - gdi.copyVirtScreenBuffers(spi->bbox); // XXX 0, 0x40000000); + gdi.copyVirtScreenBuffers(spi->bbox, USAGE_BIT_RESTORED); } else if (firstLoop) { xmin = spi->bbox.left; ymin = spi->bbox.top; @@ -1090,7 +1091,7 @@ void ScummEngine_v90he::spritesBlitToScreen() { } } if (refreshScreen) { - gdi.copyVirtScreenBuffers(Common::Rect(xmin, ymin, xmax, ymax)); // , 0, 0x40000000); + gdi.copyVirtScreenBuffers(Common::Rect(xmin, ymin, xmax, ymax), USAGE_BIT_RESTORED); } } @@ -1210,10 +1211,8 @@ void ScummEngine_v90he::spritesProcessWiz(bool arg) { for (int i = 0; i < _numSpritesToProcess; i++) { SpriteInfo *spi = _activeSpritesTable[i]; - // HACK Sprite redraws aren't always been triggered - // so leave disabled for now. - //if (!(spi->flags & kSFNeedRedraw)) - // continue; + if (!(spi->flags & kSFNeedRedraw)) + continue; spr_flags = spi->flags; |