[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.20,1.21 sdl-common.h,1.10,1.11

Max Horn fingolfin at users.sourceforge.net
Wed Dec 25 04:54:02 CET 2002


Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv13921

Modified Files:
	sdl-common.cpp sdl-common.h 
Log Message:
fixed mouse cursor code to cope with CMI

Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- sdl-common.cpp	21 Dec 2002 11:58:46 -0000	1.20
+++ sdl-common.cpp	25 Dec 2002 12:53:47 -0000	1.21
@@ -400,6 +400,9 @@
 }
 	
 void OSystem_SDL_Common::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y) {
+
+	assert(0 < w && w <= MAX_MOUSE_W);
+	assert(0 < h && h <= MAX_MOUSE_H);
 	_mouseCurState.w = w;
 	_mouseCurState.h = h;
 

Index: sdl-common.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- sdl-common.h	13 Dec 2002 17:43:50 -0000	1.10
+++ sdl-common.h	25 Dec 2002 12:53:47 -0000	1.11
@@ -151,8 +151,8 @@
 	enum {
 		NUM_DIRTY_RECT = 100,
 
-		MAX_MOUSE_W = 40,
-		MAX_MOUSE_H = 40,
+		MAX_MOUSE_W = 80,
+		MAX_MOUSE_H = 80,
 		MAX_SCALING = 3
 	};
 





More information about the Scummvm-git-logs mailing list