[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.285,2.286

Max Horn fingolfin at users.sourceforge.net
Sat Aug 14 13:03:17 CEST 2004


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

Modified Files:
	gfx.cpp 
Log Message:
Remove obsolete comment

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.285
retrieving revision 2.286
diff -u -d -r2.285 -r2.286
--- gfx.cpp	14 Aug 2004 19:52:20 -0000	2.285
+++ gfx.cpp	14 Aug 2004 20:02:40 -0000	2.286
@@ -642,10 +642,6 @@
 	if (vs->hasTwoBuffers && _currentRoom != 0 && isLightOn()) {
 		blit(screenBuf, vs->pitch, vs->getBackPixels(rect.left, rect.top), vs->pitch, width, height);
 		if (vs->number == kMainVirtScreen && _charset->_hasMask) {
-			// Note: At first sight it may look as if this could
-			// be optimized to (rect.right - rect.left) / 8 and
-			// thus to width / 8, but that's not the case since
-			// we are dealing with integer math here.
 			const int mask_width = rect.width();
 			byte *mask = (byte *)gdi._textSurface.pixels + gdi._textSurface.pitch * rect.top + rect.left;
 			while (height--) {
@@ -683,13 +679,12 @@
 		byte *screenBuf = vs->getPixels(0, 0);
 
 		if (vs->hasTwoBuffers && _vm->_currentRoom != 0 && _vm->isLightOn()) {
-			const byte *backBuf = vs->getBackPixels(0, 0);
-
 			if (vs->number == kMainVirtScreen) {
 				// Clean out the charset mask
 				memset(_vm->gdi._textSurface.pixels, CHARSET_MASK_TRANSPARENCY, _vm->gdi._textSurface.pitch * _vm->gdi._textSurface.h);
 			} else {
 				// Restore from back buffer
+				const byte *backBuf = vs->getBackPixels(0, 0);
 				blit(screenBuf, vs->pitch, backBuf, vs->pitch, vs->w, vs->h);
 			}
 		} else {





More information about the Scummvm-git-logs mailing list