aboutsummaryrefslogtreecommitdiff
path: root/graphics/xv/files
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-10-07 19:51:31 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-10-07 19:51:31 +0000
commit7c24ecfeb00b27cc4aac93b63e93ae853ce51e87 (patch)
tree64b0e24870251e8075e3d8e63018de5c5872a01e /graphics/xv/files
parent0308399127becc559a4a6ccf56ca1e94ae8e9236 (diff)
downloadports-7c24ecfeb00b27cc4aac93b63e93ae853ce51e87.tar.gz
ports-7c24ecfeb00b27cc4aac93b63e93ae853ce51e87.zip
Notes
Diffstat (limited to 'graphics/xv/files')
-rw-r--r--graphics/xv/files/patch-xvimage.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/xv/files/patch-xvimage.c b/graphics/xv/files/patch-xvimage.c
new file mode 100644
index 000000000000..32bb035156f3
--- /dev/null
+++ b/graphics/xv/files/patch-xvimage.c
@@ -0,0 +1,24 @@
+--- xvimage.c.orig Sat Oct 7 21:38:26 2006
++++ xvimage.c Sat Oct 7 21:44:00 2006
+@@ -2003,8 +2003,8 @@
+ if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
+ else xcol = xcolors[*pp] & 0xffff;
+
+- *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
+- *((unsigned char *)ip)++ = (xcol) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol>>8) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol) & 0xff;
+ }
+ }
+ else { /* LSBFirst */
+@@ -2014,8 +2014,8 @@
+ if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
+ else xcol = xcolors[*pp];
+
+- *((unsigned char *)ip)++ = (xcol) & 0xff;
+- *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol) & 0xff;
++ *(((unsigned char *)ip)++) = (xcol>>8) & 0xff;
+ }
+ }
+ }