Contents of /trunk/eterm/patches/eterm-0.9.3-pixmap-colmod.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1004 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 1004 byte(s)
-import
1 | Patch taken from upstream cvs to fix funky blue tinting. |
2 | |
3 | --- src/pixmap.c |
4 | +++ src/pixmap.c |
5 | @@ -54,2 +54,7 @@ |
6 | |
7 | +/* FIXME: Workaround for older versions of libast. */ |
8 | +#ifndef WORDS_BIGENDIAN |
9 | +# define WORDS_BIGENDIAN 0 |
10 | +#endif |
11 | + |
12 | /* Assembler routines */ |
13 | @@ -1636,3 +1641,3 @@ |
14 | |
15 | -# ifdef WORDS_BIGENDIAN |
16 | +# if WORDS_BIGENDIAN |
17 | r = (ptr[x + 1] * rm) >> 8; |
18 | @@ -1659,3 +1664,3 @@ |
19 | |
20 | -# ifdef WORDS_BIGENDIAN |
21 | +# if WORDS_BIGENDIAN |
22 | r = (ptr[x + 1] * rm) >> 8; |
23 | @@ -1671,3 +1676,3 @@ |
24 | b |= (!(b >> 8) - 1); |
25 | -# ifdef WORDS_BIGENDIAN |
26 | +# if WORDS_BIGENDIAN |
27 | ptr[x + 1] = r; |
28 | @@ -1701,3 +1706,3 @@ |
29 | |
30 | -# ifdef WORDS_BIGENDIAN |
31 | +# if WORDS_BIGENDIAN |
32 | r = (ptr[x + 0] * rm) >> 8; |
33 | @@ -1724,3 +1729,3 @@ |
34 | |
35 | -# ifdef WORDS_BIGENDIAN |
36 | +# if WORDS_BIGENDIAN |
37 | r = (ptr[x + 0] * rm) >> 8; |
38 | @@ -1736,3 +1741,3 @@ |
39 | b |= (!(b >> 8) - 1); |
40 | -# ifdef WORDS_BIGENDIAN |
41 | +# if WORDS_BIGENDIAN |
42 | ptr[x + 0] = r; |