[Scummvm-cvs-logs] CVS: scummvm/backends/sdl graphics.cpp,1.19,1.20

Max Horn fingolfin at users.sourceforge.net
Fri Dec 3 02:37:08 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8437

Modified Files:
	graphics.cpp 
Log Message:
Paranoia

Index: graphics.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/graphics.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- graphics.cpp	1 Dec 2004 21:16:40 -0000	1.19
+++ graphics.cpp	3 Dec 2004 10:36:30 -0000	1.20
@@ -1062,13 +1062,15 @@
 	if (_mouseDrawn || !_mouseVisible)
 		return;
 
+	assert(_mouseData);
+
 	int x = _mouseCurState.x - _mouseHotspotX;
 	int y = _mouseCurState.y - _mouseHotspotY;
 	int w = _mouseCurState.w;
 	int h = _mouseCurState.h;
 	byte color;
 	const byte *src = _mouseData;		// Image representing the mouse
-
+	
 	// clip the mouse rect, and addjust the src pointer accordingly
 	if (x < 0) {
 		w += x;





More information about the Scummvm-git-logs mailing list