diff options
-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(); |