[Scummvm-cvs-logs] CVS: scummvm/sword2 controls.cpp,1.57,1.58 function.cpp,1.45,1.46 sword2.cpp,1.98,1.99
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Sun Jan 4 07:12:08 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver driver96.h,1.68,1.69
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver d_draw.cpp,1.51,1.52 d_draw.h,1.17,1.18 palette.cpp,1.26,1.27 rdwin.cpp,1.39,1.40 render.cpp,1.45,1.46 sprite.cpp,1.36,1.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sword2
In directory sc8-pr-cvs1:/tmp/cvs-serv17578
Modified Files:
controls.cpp function.cpp sword2.cpp
Log Message:
Adapted LavosSpawn's idea for more efficient screen updating. It still
renders the entire screen every frame, but it tries to update (i.e. copy to
the backend) only the parts of the screen that actually changed. At least
approximately so.
Index: controls.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/controls.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- controls.cpp 28 Dec 2003 15:08:11 -0000 1.57
+++ controls.cpp 4 Jan 2004 15:11:29 -0000 1.58
@@ -283,7 +283,7 @@
while (!_finish) {
// So that the menu icons will reach their full size
_gui->_vm->_graphics->processMenu();
- _gui->_vm->_graphics->updateDisplay();
+ _gui->_vm->_graphics->updateDisplay(false);
int16 newMouseX = _gui->_vm->_input->_mouseX;
int16 newMouseY = _gui->_vm->_input->_mouseY + 40;
Index: function.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/function.cpp,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- function.cpp 31 Dec 2003 23:32:40 -0000 1.45
+++ function.cpp 4 Jan 2004 15:11:29 -0000 1.46
@@ -623,7 +623,6 @@
bool foundStartLine = false;
_vm->_graphics->clearScene();
- _vm->_graphics->setNeedFullRedraw();
for (i = startLine; i < lineCount; i++) {
// Free any sprites that have scrolled off the screen
Index: sword2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/sword2.cpp,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- sword2.cpp 4 Jan 2004 14:00:58 -0000 1.98
+++ sword2.cpp 4 Jan 2004 15:11:30 -0000 1.99
@@ -327,8 +327,6 @@
if (_debugger->isAttached())
_debugger->onFrame();
- _graphics->updateDisplay();
-
#ifdef _SWORD2_DEBUG
// FIXME: If we want this, we should re-work it to use the backend's
// screenshot functionality.
@@ -456,10 +454,10 @@
void Sword2Engine::sleepUntil(uint32 time) {
while (_system->get_msecs() < time) {
- // Make sure menu animations and fades don't suffer
+ // Make sure menu animations and fades don't suffer, but don't
+ // redraw the entire scene.
_graphics->processMenu();
- _graphics->updateDisplay();
-
+ _graphics->updateDisplay(false);
_system->delay_msecs(10);
}
}
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver driver96.h,1.68,1.69
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2/driver d_draw.cpp,1.51,1.52 d_draw.h,1.17,1.18 palette.cpp,1.26,1.27 rdwin.cpp,1.39,1.40 render.cpp,1.45,1.46 sprite.cpp,1.36,1.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list