[Scummvm-cvs-logs] CVS: scummvm sdl.cpp,1.96,1.97

James Brown ender at users.sourceforge.net
Wed Apr 17 23:57:02 CEST 2002


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

Modified Files:
	sdl.cpp 
Log Message:
Semi-fix shaking distortion. Mouse pointer corrupts background tho.



Index: sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sdl.cpp,v
retrieving revision 1.96
retrieving revision 1.97
diff -C2 -d -r1.96 -r1.97
*** sdl.cpp	17 Apr 2002 20:22:21 -0000	1.96
--- sdl.cpp	18 Apr 2002 06:56:16 -0000	1.97
***************
*** 338,341 ****
--- 338,342 ----
  		add_dirty_rgn_auto(buf);
  	} else {
+ 		y+=_current_shake_pos;
  		/* Clip the coordinates */
  		if (x < 0) { w+=x; buf-=x; x = 0; }
***************
*** 502,506 ****
  						w++;
  					} while (x+w != SCREEN_WIDTH/8 && ck[w] != ck[w+CKSUM_NUM]);
! 
  					add_dirty_rect(x*8, y*8, w*8, 8);
  
--- 503,507 ----
  						w++;
  					} while (x+w != SCREEN_WIDTH/8 && ck[w] != ck[w+CKSUM_NUM]);
! 					
  					add_dirty_rect(x*8, y*8, w*8, 8);
  





More information about the Scummvm-git-logs mailing list