[Scummvm-cvs-logs] CVS: scummvm/bs2 mouse.cpp,1.11,1.12

Max Horn fingolfin at users.sourceforge.net
Fri Sep 12 19:12:02 CEST 2003


Update of /cvsroot/scummvm/scummvm/bs2
In directory sc8-pr-cvs1:/tmp/cvs-serv13478

Modified Files:
	mouse.cpp 
Log Message:
wow - now I can walk around in the BS2 demo!

Index: mouse.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/mouse.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mouse.cpp	13 Sep 2003 01:59:10 -0000	1.11
+++ mouse.cpp	13 Sep 2003 02:11:05 -0000	1.12
@@ -1321,10 +1321,10 @@
 
 	ob_mouse->x1		= 0;
 	ob_mouse->y1		= 0;
-	ob_mouse->x2		= this_screen.screen_wide-1;
-	ob_mouse->y2		= this_screen.screen_deep-1;
-	ob_mouse->priority	= 9;				// floor is always lowest priority
-	ob_mouse->pointer	= NORMAL_MOUSE_ID;	// normal pointer
+	ob_mouse->x2		= TO_LE_32(this_screen.screen_wide-1);
+	ob_mouse->y2		= TO_LE_32(this_screen.screen_deep-1);
+	ob_mouse->priority	= TO_LE_32(9);				// floor is always lowest priority
+	ob_mouse->pointer	= TO_LE_32(NORMAL_MOUSE_ID);	// normal pointer
 
 
 	return(IR_CONT);	//	continue script
@@ -1342,12 +1342,12 @@
 
 	ob_mouse->x1		= 0;
 	ob_mouse->y1		= 0;
-	ob_mouse->x2		= this_screen.scroll_offset_x + SCROLL_MOUSE_WIDTH;
-	ob_mouse->y2		= this_screen.screen_deep-1;
+	ob_mouse->x2		= TO_LE_32(this_screen.scroll_offset_x + SCROLL_MOUSE_WIDTH);
+	ob_mouse->y2		= TO_LE_32(this_screen.screen_deep-1);
 	ob_mouse->priority	= 0;	// highest priority
 
 	if (this_screen.scroll_offset_x > 0)	// if not fully scrolled to the left
-		ob_mouse->pointer = SCROLL_LEFT_MOUSE_ID;
+		ob_mouse->pointer = TO_LE_32(SCROLL_LEFT_MOUSE_ID);
 	else
 		ob_mouse->pointer = 0;	// so the mouse area doesn't get registered
 
@@ -1362,14 +1362,14 @@
  	Object_mouse	*ob_mouse = (Object_mouse *) params[0];
 
 
-	ob_mouse->x1		= this_screen.scroll_offset_x + screenWide - SCROLL_MOUSE_WIDTH;
+	ob_mouse->x1		= TO_LE_32(this_screen.scroll_offset_x + screenWide - SCROLL_MOUSE_WIDTH);
 	ob_mouse->y1		= 0;
-	ob_mouse->x2		= this_screen.screen_wide-1;
-	ob_mouse->y2		= this_screen.screen_deep-1;
+	ob_mouse->x2		= TO_LE_32(this_screen.screen_wide-1);
+	ob_mouse->y2		= TO_LE_32(this_screen.screen_deep-1);
 	ob_mouse->priority	= 0;	// highest priority
 
 	if (this_screen.scroll_offset_x < this_screen.max_scroll_offset_x)	// if not fully scrolled to the right
-		ob_mouse->pointer = SCROLL_RIGHT_MOUSE_ID;
+		ob_mouse->pointer = TO_LE_32(SCROLL_RIGHT_MOUSE_ID);
 	else
 		ob_mouse->pointer = 0;	// so the mouse area doesn't get registered
 





More information about the Scummvm-git-logs mailing list