aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2007-07-31 21:37:02 +0800
committerarved <arved@FreeBSD.org>2007-07-31 21:37:02 +0800
commitcdc0f4e852a22e8b2ab4ee459b5fdb597d00f92e (patch)
tree5d6cb1acb52f957c27aac707d99e72c696bf5526 /games
parent498768c6b1f17911d24a8ce8169ed60937f5de3f (diff)
downloadfreebsd-ports-gnome-cdc0f4e852a22e8b2ab4ee459b5fdb597d00f92e.tar.gz
freebsd-ports-gnome-cdc0f4e852a22e8b2ab4ee459b5fdb597d00f92e.tar.zst
freebsd-ports-gnome-cdc0f4e852a22e8b2ab4ee459b5fdb597d00f92e.zip
Fix compile on 64bit CPUs
Obtained from: Gentoo CVS
Diffstat (limited to 'games')
-rw-r--r--games/maelstrom/files/patch-screenlib-SDL_FrameBuf.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/maelstrom/files/patch-screenlib-SDL_FrameBuf.cpp b/games/maelstrom/files/patch-screenlib-SDL_FrameBuf.cpp
new file mode 100644
index 000000000000..bdf04d3ad30d
--- /dev/null
+++ b/games/maelstrom/files/patch-screenlib-SDL_FrameBuf.cpp
@@ -0,0 +1,15 @@
+--- screenlib/SDL_FrameBuf.cpp.old 2006-10-25 22:37:21.000000000 +0200
++++ 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;