diff options
| -rw-r--r-- | engines/mohawk/graphics.cpp | 4 | ||||
| -rw-r--r-- | engines/mohawk/graphics.h | 2 | 
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/mohawk/graphics.cpp b/engines/mohawk/graphics.cpp index c13738689f..19fb561e37 100644 --- a/engines/mohawk/graphics.cpp +++ b/engines/mohawk/graphics.cpp @@ -672,7 +672,7 @@ void RivenGraphics::drawPLST(uint16 x) {  	delete plst;  } -void RivenGraphics::updateScreen() { +void RivenGraphics::updateScreen(Common::Rect updateRect) {  	if (_updatesEnabled) {  		_vm->runUpdateScreenScript(); @@ -681,7 +681,7 @@ void RivenGraphics::updateScreen() {  			// Copy to screen if there's no transition. Otherwise transition. ;)  			if (_scheduledTransition < 0) -				_vm->_system->copyRectToScreen((byte *)_mainScreen->pixels, _mainScreen->pitch, 0, 0, _mainScreen->w, _mainScreen->h); +				_vm->_system->copyRectToScreen((byte *)_mainScreen->getBasePtr(updateRect.left, updateRect.top), _mainScreen->pitch, updateRect.left, updateRect.top, updateRect.width(), updateRect.height());  			else  				runScheduledTransition(); diff --git a/engines/mohawk/graphics.h b/engines/mohawk/graphics.h index 7c11692af3..c664e76dcc 100644 --- a/engines/mohawk/graphics.h +++ b/engines/mohawk/graphics.h @@ -171,7 +171,7 @@ public:  	~RivenGraphics();  	void copyImageToScreen(uint16, uint32, uint32, uint32, uint32); -	void updateScreen(); +	void updateScreen(Common::Rect updateRect = Common::Rect(0, 0, 608, 392));  	bool _updatesEnabled;  	Common::Array<uint16> _activatedPLSTs;  	void drawPLST(uint16 x);  | 
