[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,1.65,1.66

Max Horn fingolfin at users.sourceforge.net
Wed Nov 27 19:09:04 CET 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv20668

Modified Files:
	gfx.cpp 
Log Message:
small cleanup

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- gfx.cpp	27 Nov 2002 22:45:36 -0000	1.65
+++ gfx.cpp	28 Nov 2002 03:08:35 -0000	1.66
@@ -603,23 +603,12 @@
 		                   _flashlight.y, _flashlight.y + _flashlight.h, 0x80000000);
 		
 		if (_flashlight.buffer) {
-
-			offset = _realWidth - _flashlight.w;
 			i = _flashlight.h;
 			do {
-				j = _flashlight.w / 4;
-				do {
-#if defined(SCUMM_NEED_ALIGNMENT)
-					memset(_flashlight.buffer, 0, sizeof(uint32));
-#else		
-					*(uint32 *)_flashlight.buffer = 0;
-#endif
-					_flashlight.buffer += 4;
-				} while (--j);
-				_flashlight.buffer += offset;
+				memset(_flashlight.buffer, 0, _flashlight.w);
+				_flashlight.buffer += _realWidth;
 			} while (--i);
 		}
-
 		_flashlightIsDrawn = false;
 	}
 





More information about the Scummvm-git-logs mailing list