[crossfire] Re: [Crossfire-cvs] CVS commit: client
Andreas Kirschbaum
kirschbaum at myrealbox.com
Wed Jul 20 03:53:54 CDT 2005
crossfire-cvs-admin at lists.sourceforge.net
wrote:
>
Module Name: client
>
Committed By: mwedel
>
Date: Sun Apr 17 04:47:13 UTC 2005
[...]
>
Index: client/gtk/image.c
>
diff -c client/gtk/image.c:1.22 client/gtk/image.c:1.23
[...]
>
***************
>
*** 203,211 ****
>
*/
>
p = (uint32*) (fog->pixels + i);
>
g = ( ((*p >> 24) & 0xff) + ((*p >> 16) & 0xff) + ((*p >> 8) & 0xff)) / 3;
>
! p = (g << 24) | (g << 16) | (g << 8) | (*p & 0xff);
>
! l = (uint32*) fog->pixels + i;
>
! *(uint32*) l = *p;
>
}
>
>
SDL_UnlockSurface(fog);
>
--- 203,211 ----
>
*/
>
p = (uint32*) (fog->pixels + i);
>
g = ( ((*p >> 24) & 0xff) + ((*p >> 16) & 0xff) + ((*p >> 8) & 0xff)) / 3;
>
! l = (uint32*) fog->pixels + i;
>
! + *(uint32*) l = (g << 24) | (g << 16) | (g << 8) | (*p & 0xff);
>
!
Is this plus sign at the beginning of the line really intentional?
More information about the crossfire
mailing list