aboutsummaryrefslogtreecommitdiff
path: root/graphics/xv/files/patch-xvimage.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xv/files/patch-xvimage.c')
-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;
+ }
+ }
+ }