| version 1.2 | | version 1.3 |
|---|
| | |
| /* | | /* |
| * static char *rcsid_xutil_c = | | * static char *rcsid_xutil_c = |
| * "$Id: xutil.c,v 1.2 2001/11/04 03:31:59 mwedel Exp $"; | | * "$Id: xutil.c,v 1.3 2001/12/28 08:56:32 mwedel Exp $"; |
| */ | | */ |
| /* | | /* |
| Crossfire client, a client program for the crossfire program. | | Crossfire client, a client program for the crossfire program. |
| | |
| { | | { |
| char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
| int fd,len; | | int fd,len; |
| char data[65536]; | | uint8 data[65536]; |
| uint32 newsum=0; | | uint32 newsum=0; |
| #ifndef GDK_XUTIL | | #ifndef GDK_XUTIL |
| Pixmap pixmap, mask; | | Pixmap pixmap, mask; |
| | |
| fprintf(stderr,"Error loading png file.\n"); | | fprintf(stderr,"Error loading png file.\n"); |
| } | | } |
| #else | | #else |
| if (png_to_xpixmap(display, win_game, databuf, len, | | if (png_to_xpixmap(display, win_game, (uint8*)databuf, len, |
| &private_cache[num].pixmap, &private_cache[num].mask, | | &private_cache[num].pixmap, &private_cache[num].mask, |
| &colormap, &x, &y)) { | | &colormap, &x, &y)) { |
| | | |