[Scummvm-cvs-logs] CVS: scummvm sdl.cpp,1.117,1.118

Max Horn fingolfin at users.sourceforge.net
Thu May 9 12:44:01 CEST 2002


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

Modified Files:
	sdl.cpp 
Log Message:
fixed stupid bug in my optimized mouse code

Index: sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sdl.cpp,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- sdl.cpp	9 May 2002 18:23:33 -0000	1.117
+++ sdl.cpp	9 May 2002 19:43:07 -0000	1.118
@@ -971,6 +971,8 @@
 	if (SDL_LockSurface(sdl_screen) == -1)
 		error("SDL_LockSurface failed: %s.\n", SDL_GetError());
 
+	add_dirty_rect(x, y, w, h);
+
 	dst = (byte *)sdl_screen->pixels + y * SCREEN_WIDTH + x;
 	while (h > 0) {
 		int width = w;
@@ -987,8 +989,6 @@
 		dst += SCREEN_WIDTH - w;
 		h--;
 	}
-
-	add_dirty_rect(x, y, w, h);
 
 	SDL_UnlockSurface(sdl_screen);
 	





More information about the Scummvm-git-logs mailing list