[Scummvm-cvs-logs] CVS: scummvm sdl.cpp,1.99,1.100

James Brown ender at users.sourceforge.net
Mon Apr 22 11:04:20 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv5681

Modified Files:
	sdl.cpp 
Log Message:
Fix cursor hotspot offset. (swapped x/y coords)


Index: sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sdl.cpp,v
retrieving revision 1.99
retrieving revision 1.100
diff -C2 -d -r1.99 -r1.100
*** sdl.cpp	21 Apr 2002 17:46:41 -0000	1.99
--- sdl.cpp	22 Apr 2002 18:01:32 -0000	1.100
***************
*** 939,944 ****
  		error("SDL_LockSurface failed: %s.\n", SDL_GetError());
  
! 	const int ydraw = _ms_cur.y + _current_shake_pos - _ms_hotspot_x;
! 	const int xdraw = _ms_cur.x - _ms_hotspot_y;
  	const int w = _ms_cur.w;
  	const int h = _ms_cur.h;
--- 939,944 ----
  		error("SDL_LockSurface failed: %s.\n", SDL_GetError());
  
! 	const int ydraw = _ms_cur.y + _current_shake_pos - _ms_hotspot_y;
! 	const int xdraw = _ms_cur.x - _ms_hotspot_x;
  	const int w = _ms_cur.w;
  	const int h = _ms_cur.h;





More information about the Scummvm-git-logs mailing list