aboutsummaryrefslogtreecommitdiff
path: root/games/xjig
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-08-08 17:10:37 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-08-08 17:10:37 +0000
commit4bcb8635ccb5567e4e25e461e0ccef2a332436c0 (patch)
treea7d9c6557a8cfbf25427967c0a70ea9c5d656c12 /games/xjig
parent8bb7296b9c0b25022cd2f1272587e7578a527e9d (diff)
downloadports-4bcb8635ccb5567e4e25e461e0ccef2a332436c0.tar.gz
ports-4bcb8635ccb5567e4e25e461e0ccef2a332436c0.zip
Notes
Diffstat (limited to 'games/xjig')
-rw-r--r--games/xjig/files/patch-ag13
1 files changed, 7 insertions, 6 deletions
diff --git a/games/xjig/files/patch-ag b/games/xjig/files/patch-ag
index 76abd0c6a2d2..168520773638 100644
--- a/games/xjig/files/patch-ag
+++ b/games/xjig/files/patch-ag
@@ -1,6 +1,6 @@
---- reset_image.H.orig Tue Jul 16 10:59:50 1996
-+++ reset_image.H Tue Apr 7 15:34:33 1998
-@@ -16,15 +16,24 @@
+--- reset_image.H.orig Wed Jul 17 02:59:50 1996
++++ reset_image.H Fri Aug 6 03:12:24 2004
+@@ -16,15 +16,25 @@
// to access data beyond the allocated image, that might lead to a segmentation
// violation. Therefore, it might be good to allocated some additional
// rows of data for the image.
@@ -21,7 +21,8 @@
- *xdata_run++=(DATA_TYPE)blk_pixel;
+ // *xdata_run++=(DATA_TYPE)blk_pixel;
+ *xdata_run=(DATA_TYPE)blk_pixel; // align fault
-+ ((char *)xdata_run) += DATA_BYTES;
++ char *my_xdata_run = (char *)xdata_run;
++ my_xdata_run += DATA_BYTES;
}
}
- xdata+=(offset_bytes/sizeof(DATA_TYPE));
@@ -29,7 +30,7 @@
if (!xdata) {
fprintf(stderr,"not enough memory for XImage-data");
-@@ -32,9 +41,11 @@
+@@ -32,9 +42,11 @@
}
// create the XImage
@@ -43,7 +44,7 @@
if (!ximage) {
fprintf(stderr,"\n*** can't allocate ximage.\n" );
-@@ -47,9 +58,23 @@
+@@ -47,9 +59,23 @@
register const byte *org = Data();
register int j,i;