[Scummvm-cvs-logs] SF.net SVN: scummvm:[55206] scummvm/trunk/engines/mohawk
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Tue Jan 11 20:23:24 CET 2011
Revision: 55206
http://scummvm.svn.sourceforge.net/scummvm/?rev=55206&view=rev
Author: mthreepwood
Date: 2011-01-11 19:23:24 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
MOHAWK: Allow for Riven to update specific portions of the screen
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/graphics.cpp
scummvm/trunk/engines/mohawk/graphics.h
Modified: scummvm/trunk/engines/mohawk/graphics.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/graphics.cpp 2011-01-11 17:27:47 UTC (rev 55205)
+++ scummvm/trunk/engines/mohawk/graphics.cpp 2011-01-11 19:23:24 UTC (rev 55206)
@@ -672,7 +672,7 @@
delete plst;
}
-void RivenGraphics::updateScreen() {
+void RivenGraphics::updateScreen(Common::Rect updateRect) {
if (_updatesEnabled) {
_vm->runUpdateScreenScript();
@@ -681,7 +681,7 @@
// 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();
Modified: scummvm/trunk/engines/mohawk/graphics.h
===================================================================
--- scummvm/trunk/engines/mohawk/graphics.h 2011-01-11 17:27:47 UTC (rev 55205)
+++ scummvm/trunk/engines/mohawk/graphics.h 2011-01-11 19:23:24 UTC (rev 55206)
@@ -171,7 +171,7 @@
~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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list