[Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_player.cpp,1.128,1.129

Max Horn fingolfin at users.sourceforge.net
Sat Aug 14 12:43:00 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4742/smush

Modified Files:
	smush_player.cpp 
Log Message:
Modified VirtScreen to inherit from Graphics::Surface, and added getPixels()/getBackPixels() accessors (these changes make it a bit easier to implement smooth scrolling); also replaced some uses of rtBuffer by proper access through the corresponding VirtScreen

Index: smush_player.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/smush_player.cpp,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- smush_player.cpp	26 Jul 2004 23:15:01 -0000	1.128
+++ smush_player.cpp	14 Aug 2004 19:42:00 -0000	1.129
@@ -253,7 +253,7 @@
 	_alreadyInit = false;
 	_vm->_smushVideoShouldFinish = false;
 	_vm->setDirtyColors(0, 255);
-	_dst = _vm->virtscr[0].screenPtr + _vm->virtscr[0].xstart;
+	_dst = _vm->virtscr[0].getPixels(0, 0);
 	_smixer = new SmushMixer(_vm->_mixer);
 	g_timer->installTimerProc(&timerCallback, _speed, this);
 }





More information about the Scummvm-git-logs mailing list