]> git.pld-linux.org Git - packages/crossfire-client.git/blob - crossfire-client-big_endian.patch
- updated to 1.8.0 (images to 1.7.1)
[packages/crossfire-client.git] / crossfire-client-big_endian.patch
1 --- crossfire-client-1.7.0.orig/gtk/image.c     2004-04-19 08:35:11.000000000 +0200
2 +++ crossfire-client-1.7.0/gtk/image.c  2004-04-30 09:33:58.000000000 +0200
3 @@ -193,11 +193,11 @@
4         }
5  
6         for (i=0; i < pi->map_width * pi->map_height; i+= 4) {
7 -           p = (uint32) (fog->pixels + i);
8 -           g = ( ((p >> 24) & 0xff)  + ((p >> 16) & 0xff) + ((p >> 8) & 0xff)) / 3;
9 -           p = (g << 24) | (g << 16) | (g << 8) | (p & 0xff);
10 +           p = (uint32*) (fog->pixels + i);
11 +           g = ( ((*p >> 24) & 0xff)  + ((*p >> 16) & 0xff) + ((*p >> 8) & 0xff)) / 3;
12 +           p = (g << 24) | (g << 16) | (g << 8) | (*p & 0xff);
13             l = (uint32*) fog->pixels + i;
14 -           *(uint32*) l = p;
15 +           *(uint32*) l = *p;
16         }
17  
18         SDL_UnlockSurface(fog);
This page took 0.079348 seconds and 3 git commands to generate.