diff options
author | Sven Hesse | 2008-05-22 18:30:29 +0000 |
---|---|---|
committer | Sven Hesse | 2008-05-22 18:30:29 +0000 |
commit | bfff91b1724bb8821553e9c134059312fe2dd334 (patch) | |
tree | ac3bbaa8bf95f4365d373159cc6a7a734530f481 | |
parent | 6a54cbc4ebb47af65f5d6f9adcef82b5811aba10 (diff) | |
download | scummvm-rg350-bfff91b1724bb8821553e9c134059312fe2dd334.tar.gz scummvm-rg350-bfff91b1724bb8821553e9c134059312fe2dd334.tar.bz2 scummvm-rg350-bfff91b1724bb8821553e9c134059312fe2dd334.zip |
Reverting my last commit, as it breaks Gob3 (and probably elsewhere, too)
svn-id: r32214
-rw-r--r-- | engines/gob/draw.cpp | 8 | ||||
-rw-r--r-- | engines/gob/draw.h | 2 | ||||
-rw-r--r-- | engines/gob/videoplayer.cpp | 2 |
3 files changed, 4 insertions, 8 deletions
diff --git a/engines/gob/draw.cpp b/engines/gob/draw.cpp index cc3b413f41..8a7de9bdaa 100644 --- a/engines/gob/draw.cpp +++ b/engines/gob/draw.cpp @@ -225,7 +225,7 @@ void Draw::invalidateRect(int16 left, int16 top, int16 right, int16 bottom) { _invalidatedCount++; } -void Draw::blitInvalidated(bool noForce) { +void Draw::blitInvalidated() { if (_noInvalidated57 && ((_vm->_global->_videoMode == 5) || (_vm->_global->_videoMode == 7))) return; @@ -248,12 +248,8 @@ void Draw::blitInvalidated(bool noForce) { _showCursor = (_showCursor & ~2) | ((_showCursor & 1) << 1); if (_applyPal) { clearPalette(); - - if (!noForce) - forceBlit(); - + forceBlit(); setPalette(); - _invalidatedCount = 0; _noInvalidated = true; _applyPal = false; diff --git a/engines/gob/draw.h b/engines/gob/draw.h index b7e5ef9f08..9ba589aa53 100644 --- a/engines/gob/draw.h +++ b/engines/gob/draw.h @@ -133,7 +133,7 @@ public: int16 _scrollOffsetX; void invalidateRect(int16 left, int16 top, int16 right, int16 bottom); - void blitInvalidated(bool noForce = false); + void blitInvalidated(); void setPalette(); void clearPalette(); diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index c3bf60c95a..c6910c1369 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -557,7 +557,7 @@ bool VideoPlayer::doPlay(int16 frame, int16 breakKey, if (_backSurf) { _vm->_draw->invalidateRect(state.left, state.top, state.right, state.bottom); - _vm->_draw->blitInvalidated(palCmd <= 1); + _vm->_draw->blitInvalidated(); } _vm->_video->retrace(); |