openbsd-ports/games/maelstrom/patches/patch-screenlib_SDL_FrameBuf_cpp
phessler 25fcf11bee Maelstrom is a port of the original shareware game for the Macintosh.
It is a fast-action, high resolution (640x480) asteroids-like game,
with detailed graphics and original sounds.

lots of feedback / ok merdely@
2008-06-04 06:50:20 +00:00

15 lines
538 B
Plaintext

$OpenBSD: patch-screenlib_SDL_FrameBuf_cpp,v 1.1.1.1 2008/06/04 06:50:20 phessler Exp $
--- screenlib/SDL_FrameBuf.cpp.orig Tue Jun 3 19:11:26 2008
+++ screenlib/SDL_FrameBuf.cpp Tue Jun 3 19:19:01 2008
@@ -848,8 +848,8 @@ FrameBuf:: AddDirtyRect(SDL_Rect *rect)
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
);
}
}