]> git.pld-linux.org Git - packages/xv.git/blame - xv-c.patch
- added jasper patch (don't use internal functions or hacks)
[packages/xv.git] / xv-c.patch
CommitLineData
e3b8e96b
JB
1--- xv-3.10a/xvimage.c.orig 2006-10-18 23:40:36.303520000 +0200
2+++ xv-3.10a/xvimage.c 2006-10-18 23:50:53.622100250 +0200
3@@ -1721,14 +1721,14 @@
4 case 12:
5 case 15:
6 case 16: {
7- unsigned short *imagedata, *ip;
8+ unsigned char *imagedata, *ip;
9 byte *pp;
10
11- imagedata = (unsigned short *) malloc((size_t) (2*wide*high));
12+ imagedata = (unsigned char *) malloc((size_t) (2*wide*high));
13 if (!imagedata) FatalError("couldn't malloc imagedata");
14
15 xim = XCreateImage(theDisp,theVisual,dispDEEP,ZPixmap,0,
16- (char *) imagedata, wide, high, 16, 0);
17+ imagedata, wide, high, 16, 0);
18 if (!xim) FatalError("couldn't create xim!");
19
20 if (dispDEEP == 12 && xim->bits_per_pixel != 16) {
21@@ -1747,8 +1747,8 @@
22 if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
23 else xcol = xcolors[*pp] & 0xffff;
24
25- *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
26- *((unsigned char *)ip)++ = (xcol) & 0xff;
27+ *ip++ = (xcol>>8) & 0xff;
28+ *ip++ = (xcol) & 0xff;
29 }
30 }
31 else { /* LSBFirst */
32@@ -1758,8 +1758,8 @@
33 if (dithpic) xcol = ((*pp) ? white : black) & 0xffff;
34 else xcol = xcolors[*pp];
35
36- *((unsigned char *)ip)++ = (xcol) & 0xff;
37- *((unsigned char *)ip)++ = (xcol>>8) & 0xff;
38+ *ip++ = (xcol) & 0xff;
39+ *ip++ = (xcol>>8) & 0xff;
40 }
41 }
42 }
This page took 1.194086 seconds and 4 git commands to generate.