1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Fix compile on 64bit CPUs

Obtained from:	Gentoo CVS
This commit is contained in:
Tilman Keskinoz 2007-07-31 13:37:02 +00:00
parent 5055e05ce7
commit d6508a579b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196826

View File

@ -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;