summaryrefslogtreecommitdiff
blob: 7d6f59a5ac26c23b53d16c89078f85b85b080054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/screenlib/SDL_FrameBuf.cpp	2006-10-25 22:37:21.000000000 +0200
+++ b/screenlib/SDL_FrameBuf.cpp	2006-10-25 22:38:26.000000000 +0200
@@ -847,10 +847,8 @@
 			/* Update the dirty rectangle map with the new list */
 			for ( i=0; i<dirtymaplen; ++i ) {
 				if ( dirtymap[i] != NULL ) {
-					dirtymap[i] = (SDL_Rect *)(
-					((int)dirtymap[i]-(int)updatelist) +
-								(int)newlist
-					);
+					dirtymap[i] = newlist
+						+ (dirtymap[i]-updatelist);
 				}
 			}
 			delete[] updatelist;