summaryrefslogtreecommitdiff
path: root/games/maelstrom-sdl/patches/patch-ai
blob: 24b76222ac06cd0c2a4338770949a3a1653f4a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ai,v 1.1 2008/07/27 22:47:43 dholland Exp $

--- screenlib/SDL_FrameBuf.cpp~	2001-07-22 17:03:13.000000000 -0400
+++ screenlib/SDL_FrameBuf.cpp	2008-07-27 18:40:05.000000000 -0400
@@ -848,8 +848,8 @@
 			for ( i=0; i<dirtymaplen; ++i ) {
 				if ( dirtymap[i] != NULL ) {
 					dirtymap[i] = (SDL_Rect *)(
-					((int)dirtymap[i]-(int)updatelist) +
-								(int)newlist
+					((intptr_t)dirtymap[i]-(intptr_t)updatelist) +
+								(intptr_t)newlist
 					);
 				}
 			}